Difference between revisions of "Aws cloudformation deploy"
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
== Related == | == Related == | ||
+ | * <code>[[aws cloudformaton update-stack]]</code> | ||
* <code>[[aws cloudformaton delete-stack]]</code> | * <code>[[aws cloudformaton delete-stack]]</code> | ||
* <code>[[terraform apply]]</code> | * <code>[[terraform apply]]</code> | ||
* <code>[[--parameter-overrides]]</code> | * <code>[[--parameter-overrides]]</code> | ||
* [[Cloudformation AWS::S3::Bucket example]] | * [[Cloudformation AWS::S3::Bucket example]] | ||
− | |||
* <code>[[aws cloudformation describe-stack-events]]</code> | * <code>[[aws cloudformation describe-stack-events]]</code> | ||
Revision as of 15:20, 28 April 2022
aws cloudformation deploy
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
Synopsys:
deploy --template-file <value> --stack-name <value> [--s3-bucket <value>] [--force-upload] [--s3-prefix <value>] [--kms-key-id <value>] [--parameter-overrides <value> [<value>...]] [--capabilities CAPABILITY_IAM | CAPABILITY_NAMED_IAM] [--no-execute-changeset] [--role-arn <value>] [--notification-arns <value> [<value>...]] [--fail-on-empty-changeset | --no-fail-on-empty-changeset] [--tags <value> [<value>...]]
Examples
aws cloudformation deploy --template-file .../...
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
Related
aws cloudformaton update-stack
aws cloudformaton delete-stack
terraform apply
--parameter-overrides
- Cloudformation AWS::S3::Bucket example
aws cloudformation describe-stack-events
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.
See also
Advertising: