aws cloudformation
Model, provision, and manage AWS and third-party resources by treating infrastructure as code. More information: https://docs.aws.amazon.com/cli/latest/reference/cloudformation/.
- Create a stack from a template file:
aws cloudformation create-stack --stack-name --region --template-body --profile
- Delete a stack:
aws cloudformation delete-stack --stack-name --profile
- List all stacks:
aws cloudformation list-stacks --profile
- List all running stacks:
aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE --profile
- Check the status of a stack:
aws cloudformation describe-stacks --stack-name --profile
- Initiate drift detection for a stack:
aws cloudformation detect-stack-drift --stack-name --profile
- Check the drift status output of a stack using
StackDriftDetectionIdfrom the previous command output:
aws cloudformation describe-stack-resource-drifts --stack-name --profile
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
