CloudFormation resources generated when AWS::Serverless::CapacityProvider is specified - AWS Serverless Application Model

CloudFormation resources generated when AWS::Serverless::CapacityProvider is specified

When an AWS::Serverless::CapacityProvider is specified, AWS Serverless Application Model (AWS SAM) generates an AWS::Lambda::CapacityProvider base CloudFormation resource.

AWS::Lambda::CapacityProvider

LogicalId: <capacityprovider‑LogicalId>

Referenceable property: N/A (you must use the LogicalId to reference this CloudFormation resource)

In addition to this CloudFormation resource, when AWS::Serverless::CapacityProvider is specified, AWS SAM also generates CloudFormation resources for the following scenarios:

OperatorRole property is not specified

When the OperatorRole property of an AWS::Serverless::CapacityProvider is not specified, AWS SAM generates an AWS::IAM::Role CloudFormation resource with the AWSLambdaManagedEC2ResourceOperator managed policy attached.

AWS::IAM::Role

LogicalId: <capacityprovider‑LogicalId>OperatorRole

Referenceable property: N/A (you must use the LogicalId to reference this CloudFormation resource)