ElasticIpConfiguration
Specifies whether the service assigns an Elastic IP address to each of the network connector's elastic network interfaces (ENIs). With ServiceManaged, the service allocates a service-managed Elastic IP address in your account for each ENI and associates it with that ENI. Each address stays the same for the life of its ENI, and the service releases it when it deletes the ENI.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
YAML
Type:String
Properties
-
Type -
The Elastic IP address type for the network connector's ENIs:
-
None: No Elastic IP addresses are assigned. -
ServiceManaged: The service allocates a service-managed Elastic IP address for each ENI and associates it with that ENI.
Valid values:
None,ServiceManagedType: String
Required: Yes
CloudFormation compatibility: This property is passed directly to the
Typeproperty ofConfiguration.VpcEgressConfiguration.ElasticIpConfigurationof anAWS::Lambda::NetworkConnectorresource. -
Examples
ElasticIpConfiguration example
The following example creates a network connector that assigns a service-managed Elastic IP address to each ENI. Because the template doesn't specify an OperatorRole, the role that AWS SAM creates includes the ec2:AllocateAddress and ec2:AssociateAddress permissions.
MyNetworkConnector: Type: AWS::Serverless::NetworkConnector Properties: ComputeTypes: - MicroVm VpcConfig: SubnetIds: - subnet-1234567890abcdef0 SecurityGroupIds: - sg-abcdef01234567890 NetworkProtocol: IPv4 ElasticIpConfiguration: Type: ServiceManaged