Update the configuration for a Deployment on Astro. This command is functionally identical to modifying a Deployment in the Cloud UI via the Edit Configuration button.
astro deployment update <deployment-id> <flags>
To run this command in an automated process such as a CI/CD pipeline, set the following OS-level environment variables in a way that the Astro CLI can access them:
After setting the variables, this command works for a Deployment and you don't need to manually authenticate to Astronomer. Astronomer recommends storing
ASTRONOMER_KEY_SECRET as a secret before using it to programmatically update production-level Deployments.
|The Deployment to update||Any valid Deployment ID|
|The description for the Deployment||Any string. Multiple-word descriptions should be specified in quotations (|
|The Deployment's name||Any string. Multiple-word descriptions should be specified in quotations|
|The number of AU to allocate towards the Deployment's Scheduler(s). The default is||Integer between |
|The number of AU to allocate towards the Deployment's worker(s). The default is ||Integer between |
|The number of scheduler replicas for the Deployment. The default is ||Integer between |
|Force a Deployment update||``|
|Specify a Workspace to update a Deployment outside of your current Workspace||Any valid Workspace ID|
# Update a Deployment's name and description
$ astro deployment update cl03oiq7d80402nwn7fsl3dmv -d="My Deployment Description" --name="My Deployment Name"
# Force update a Deployment
$ astro deployment update cl03oiq7d80402nwn7fsl3dmv -d="My Deployment Description" --force