AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudFormation::Macro

CloudFormation Macro

Resource Type definition for AWS::CloudFormation::Macro

Properties

5 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
FunctionName
string
Required
Name
string
RequiredCreate-only
Description
string
LogGroupName
string
LogRoleARN
string

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudFormation::Macro

Resources:
  MyResource:
    Type: AWS::CloudFormation::Macro
    Properties:
      FunctionName: "my-functionname"
      Name: "my-name"
      Description: !Ref "AWS::StackName"

Get the CloudFormation Cheat Sheet

Everything you need to know about CloudFormation on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceCloudFormation
Properties6
Required2
TaggingNot supported
Primary IDId

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Name

External Links