View a markdown version of this page

Amazon CloudFormation resources generated when AWS::Serverless::NetworkConnector is specified - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon CloudFormation resources generated when AWS::Serverless::NetworkConnector is specified

When you specify an AWS::Serverless::NetworkConnector, Amazon Serverless Application Model (Amazon SAM) generates an AWS::Lambda::NetworkConnector base Amazon CloudFormation resource.

AWS::Lambda::NetworkConnector

LogicalId: <networkconnector‑LogicalId>

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

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

OperatorRole property is not specified

When you don't specify the OperatorRole property of an AWS::Serverless::NetworkConnector, Amazon SAM generates an AWS::IAM::Role Amazon CloudFormation resource with the AWSLambdaNetworkConnectorOperatorPolicy Amazon managed policy attached.

The role trust policy allows the lambda.amazonaws.com service principal to assume the role.

If VpcConfig specifies an ElasticIpConfiguration whose Type isn't None, the role also gets an inline policy that allows ec2:AllocateAddress and ec2:AssociateAddress, which the service needs to assign Elastic IP addresses. The policy limits ec2:AssociateAddress on Elastic IP addresses to addresses tagged for a network connector, and limits both actions on network interfaces to the connector's own network interfaces. If the Type value is an intrinsic function, Amazon SAM can't resolve it during the transform and adds the policy.

AWS::IAM::Role

LogicalId: <networkconnector‑LogicalId>OperatorRole