Skip to content

Instantly share code, notes, and snippets.

@alexcasalboni
Last active March 3, 2019 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcasalboni/a218c5f875facd3cbeff73d49e2352b0 to your computer and use it in GitHub Desktop.
Save alexcasalboni/a218c5f875facd3cbeff73d49e2352b0 to your computer and use it in GitHub Desktop.
CloudFormation Macro definition
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
MyProcessingFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python2.7
# ...
# all the other properties here
# ...
MyMacro:
Type: AWS::CloudFormation::Macro
Properties:
Name: MyUniqueMacroName
FunctionName: !GetAtt MyProcessingFunction.Arn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment