"Hello World" CloudFormation macro.
Usage:
- create zip for lambda:
zip -9 src.zip index.py
- upload zip to S3:
aws s3 cp src.zip s3://some/where/src.zip
- edit deploy-macro.yml; change S3 permissions (optional, not used in this example) and CodeUri
- create stack for deploy-macro.yml
- the macro is now live; example template: hello.yml
This macro reads the original template and replaces an upper-level key Hello with a couple of instances.