Difference between revisions of "Aws cloudformation deploy"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/deploy/index.html | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/deploy/index.html | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == |
Revision as of 09:11, 9 May 2022
aws cloudformation deploy
Contents
Examples
aws cloudformation deploy --template-file .../...
aws cloudformation deploy --template-file /path_to_template/template.json --stack-name my-new-stack --parameter-overrides Key1=Value1 Key2=Value2 --tags Key1=Value1 Key2=Value2
Example:
aws cloudformation deploy --template-file /path_to_template/template.json --stack-name my-new-stack-name --parameter-overrides BucketName=YourBucketName
Successfully example:
Waiting for changeset to be created.. Waiting for stack create/update to complete Successfully created/updated stack - YOUR-STACK-NAME
Up to date example:
Waiting for changeset to be created.. No changes to deploy. Stack YOUR-STACK-NAME is up to date
Error
Failed to create/update the stack. Run the following command to fetch the list of events leading up to the failure aws cloudformation describe-stack-events --stack-name YOUR-STACK-NAME
Related
cfn-lint
aws cloudformation update-stack
aws cloudformation delete-stack
terraform apply
--parameter-overrides
- Cloudformation AWS::S3::Bucket example
aws cloudformation describe-stack-events --stack-name your_stack_name | egrep "LogicalResourceId|ResourceStatus"
- CREATE_FAILED
Errors
An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:eu-central-1:123456564:stack/your_stack_name/bb3f1fb0-b019-11ec-a417-123124342 is in ROLLBACK_COMPLETE state and can not be updated.
An error occurred (ValidationError) when calling the CreateChangeSet operation: Parameters: [YourParameter] must have value
['./path/to/your/file/.env'] value passed to --parameter-overrides must be of format Key=Value
See also
aws cloudformation deploy, cfn-lint
- AWS CloudFormation: [
aws cloudformation
|create-stack
|list-stacks
|delete-stack
|update-stack
|list-types
|estimate-template-cost
|validate-template
|describe-stacks
|deploy
|drift detection
],aws cloudformation get-template-summary, aws cloudformation describe-stack-events
Advertising: