This repository hosts examples of AWS CloudFormation macros.
-
The
Boto3
macro adds the ability to create CloudFormation resources that represent operations performed by boto3. EachBoto3
resource represents one function call. -
The
Count
macro provides a template-wideCount
property for CloudFormation resources. It allows you to specify multiple resources of the same type without having to cut and paste. -
The
Execution Role Builder
macro provides a more natural syntax for developers to express the permissions they want to attach to IAM execution roles for their applications, while simultaneously providing IAM administrators with a way to templatize those permissions. When used in conjunction with permission boundaries, this provides an effective solution for delegated role creation. -
The
Explode
macro provides a template-wideExplode
property for CloudFormation resources. Similar to the Count macro, it will create multiple copies of a template Resource, but looks up values to inject into each copy in a Mapping. -
Public-and-Private-Subnet-per-AZ
This is a Cloudformation Macro used to dynamically add a public and private subnet per Availability Zone when launching a template. When the CreateStack template is launched and a change set is created, the Macro (named 'CreateSubnetsPerAZ') will dynamically add resources to the template for a public and private subnet per available AZ
-
Run arbitrary python code in your CloudFormation templates
-
The
S3Objects
macro adds a new resource type:AWS::S3::Object
which you can use to populate an S3 bucket. -
The
ShortHand
macro provides convenience syntax to allow you to create short CloudFormation templates that expand into larger documents upon deployment to a stack. -
When the
StackMetrics
macro is used in a CloudFormation template, any CloudFormation stack deployed from that template will output custom CloudWatch metrics for the stack. -
Provides string transformation utility functions.
This library is licensed under the Apache 2.0 License.