Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 707 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 707 Bytes

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.