Create multiple stacks in CloudFormation. (is not nested stack)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
chain-sample.yaml
main.js
package.json
stack-template.yaml
yarn.lock

README.md

CloudFormation Chain

How to use

First, create yaml template. Stack parameters are the same as CloudFormation.createStack() in the SDK.

  1. Create yaml template:
Stacks:

  - StackName: sample-stack
    TemplateURL: https://s3-ap-northeast-1.amazonaws.com/bucket-name/stack-template.yaml
    Capabilities: ['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']
    Parameters:
      - ParameterKey: BucketName
        ParameterValue: hello-cfn-chain

Next, execute the command.

  1. Execute the command:
$ node main.js ./chain-sample.yaml

Troubleshooting

  • If stack creation fails, created stacks will be deleted. But, if stack deletion fails due by some problem, processing stops.