This guide provides an overview of using the Google Cloud Deployment Manager with the gcloud
command-line tool.
Before you start using Deployment Manager, make sure you're working with the correct project:
gcloud config set project YOUR_PROJECT_ID
Replace YOUR_PROJECT_ID
with your actual Google Cloud project ID.
To create a new deployment from your YAML or Python template file:
gcloud deployment-manager deployments create DEPLOYMENT_NAME --config CONFIG_FILE
DEPLOYMENT_NAME
is the name you want to give your deployment.CONFIG_FILE
is the path to your configuration file.
To list all your current deployments:
gcloud deployment-manager deployments list
To describe a specific deployment:
gcloud deployment-manager deployments describe DEPLOYMENT_NAME
When you need to update your resources:
gcloud deployment-manager deployments update DEPLOYMENT_NAME --config CONFIG_FILE
Use --preview
to see what changes would occur without applying them.
To delete a deployment and all associated resources:
gcloud deployment-manager deployments delete DEPLOYMENT_NAME
For more detailed instructions and best practices, check out my blog post on Google Cloud Deployment Manager.