WorkspaceSettings object, usually defined in the workspace/settings.py file is used to defines common settings used by your workspace apps and resources.
Its not mandatory and doesn’t serve any other purpose except to hold configuration used by workspace apps and resources. The values in the WorkspaceSettings object can also be set using Environment variables or a .env file.
Example
An exampleWorkspaceSettings used by the llm-app template. View this file on github
workspace/settings.py
Usage
Use the workspace settings to- Name resources
- Get the workspace root path using
ws_settings.ws_root
dev_resources.py
- Hold AWS constants like
availability zoneandsubnets
prd_resources.py