WorkspaceSettings object in the workspace/settings.py file defines common settings used by your apps and resources. Here are the settings we recommend updating:
workspace/settings.py
WorkspaceSettings can also be updated using environment variables or the .env file.Checkout the example.env file for an example.Workspace Name
Thews_name is used to name your apps and resources. Change it to your project or team name, for example:
ws_name="booking-ai"ws_name="reddit-ai"ws_name="vantage-ai"
ws_name is used to name:
- The image for your application
- Apps like db, streamlit app and FastAPI server
- Resources like buckets, secrets and loadbalancers
workspace/dev_resources.py and workspace/prd_resources.py file to see how its used.
Image Repository
Theimage_repo defines the repo for your image.
- If using dockerhub it would be something like
agno. - If using ECR it would be something like
[ACCOUNT_ID].dkr.ecr.us-east-1.amazonaws.com
dev_image in workspace/dev_resources.py and prd_image in workspace/prd_resources.py to see how its used.
Build Images
Settingbuild_images=True will build images locally when running ag ws up dev:docker or ag ws up prd:docker.
Checkout the dev_image in workspace/dev_resources.py and prd_image in workspace/prd_resources.py to see how its used.
Read more about:
Push Images
Settingpush_images=True will push images after building when running ag ws up dev:docker or ag ws up prd:docker.
Checkout the dev_image in workspace/dev_resources.py and prd_image in workspace/prd_resources.py to see how its used.
Read more about:
AWS Settings
Theaws_region and subnet_ids provide values used for creating production resources. Checkout the workspace/prd_resources.py file to see how its used.