AWS CloudFormation
Table of Contents
CloudFormation
Broken stacks
If you see this error when running pipelines, it means that the stack is in a broken state.
ERROR Stack was found in a broken state of (UPDATE_ROLLBACK_FAILED)
ERROR Job 12345678 finished with status: Failed
In that case, you will have to delete the stack and run the pipeline again.
How to delete the stack? Go to CloudFormation in AWS Console and search for the name of the stack. After it shows up, delete it and wait for it to be completely deleted. And run the pipeline again.
TODO
- CloudFormation project
- Usually, there will be a separate repository for “infra”
- There will be
manifest.yaml
andgeneralParameters.yaml
files in each application. - How do the applications use them when deployed in ECS clusters?
Parameters
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html
Resources
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html
- https://docs.aws.amazon.com/cli/latest/reference/ssm/index.html#cli-aws-ssm
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html
- https://theburningmonk.com/cloudformation-ref-and-getatt-cheatsheet/