Skip to content

Latest commit

 

History

History

nested-stacks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

An s3 bucket has to be made in your aws account to hold CloudFormation nested stacks. Nested stacks are reuseable, CloudFormation snippets. Nested stacks MUST be stored in s3.

  1. Create a new versioned S3 bucket to hold these nested stacks. We recommend naming it: [region]--aws-blueprint.yourdomain.com. Ex: us-east-1--aws-blueprint.yourdomain.com. You can enable versioning in the S3 web console by checking this box:

  2. Clone this repo

  3. cd to the nested-stacks dir int the cloned repo and run: aws s3 sync . s3://us-east-1--aws-blueprint.yourdomain.com/nested-stacks

From time to time, nested stacks in this repo are updated. If you want to pull in these changes, they need be synced to your s3 aws-blueprint nested stacks bucket. Remember your bucket is versioned, and aws-blueprint references the stacks by the version - so you don't have to worry about breaking anything in the field.

Note

You can validate your CloudFormation template from the CLI. Ex: aws cloudformation validate-template --template-body file://apig/single-lambda-proxy-with-CORS.yaml. If it passes the validator, but you get strange errors running CloudFormation, create the nested stack yaml directly in the cloudformation console. It gives better errors.