13. 2018-11-01 AWS CloudFormation Macros @ AWS UG HH - mail@maiknowak.de
custom macros
13
announced September 2018
AWS::CloudFormation::Macro
custom processing on CFN templates
AWS Lambda powered transformations
Usecases:
- simple converting / validation
- creation of complete substacks
14. 2018-11-01 AWS CloudFormation Macros @ AWS UG HH - mail@maiknowak.de
limitations
14
only in regions where AWS Lambda is available
all AWS Lambda limits apply here as well
resulting fragment must be valid JSON
processed template must pass create & update Stack validation
max. template size is calculated after macro processing
no macros in substacks
no use of macros within macros
intrinsic functions are evaluated after macro processing
same account
15. 2018-11-01 AWS CloudFormation Macros @ AWS UG HH - mail@maiknowak.de
basic example: logging
15
log template fragment in CloudWatch