Amazon EC2 LaunchTemplate NetworkInterface
The
NetworkInterface property type specifies parameters for a network interface in an Amazon EC2 launch
template.
NetworkInterface is a property of the Amazon EC2 LaunchTemplate LaunchTemplateData property type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Description" :String, "PrivateIpAddress" :String, "PrivateIpAddresses" : [ PrivateIpAdd, ... ], "SecondaryPrivateIpAddressCount" :Integer, "Ipv6AddressCount" :Integer, "Groups" : [String, ... ], "DeviceIndex" :Integer, "SubnetId" :String, "Ipv6Addresses" : [ Ipv6Add, ... ], "AssociatePublicIpAddress" :Boolean, "NetworkInterfaceId" :String, "DeleteOnTermination" :Boolean}
YAML
Description:StringPrivateIpAddress:StringPrivateIpAddresses: - PrivateIpAdd SecondaryPrivateIpAddressCount:IntegerIpv6AddressCount:IntegerGroups: -StringDeviceIndex:IntegerSubnetId:StringIpv6Addresses: - Ipv6Add AssociatePublicIpAddress:BooleanNetworkInterfaceId:StringDeleteOnTermination:Boolean
Properties
AssociatePublicIpAddress-
Associates a public IPv4 address with eth0 for a new network interface.
Required: No
Type: Boolean
Update requires: No interruption
DeleteOnTermination-
Indicates whether the network interface is deleted when the instance is terminated.
Required: No
Type: Boolean
Update requires: No interruption
Description-
A description for the network interface.
Required: No
Type: String
Update requires: No interruption
DeviceIndex-
The device index for the network interface attachment.
Required: No
Type: Integer
Update requires: No interruption
Groups-
The IDs of one or more security groups.
Required: No
Type: List of String values
Update requires: No interruption
Ipv6AddressCount-
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
Required: No
Type: Integer
Update requires: No interruption
Ipv6Addresses-
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
Required: No
Type: List of Ipv6Add
Update requires: No interruption
NetworkInterfaceId-
The ID of the network interface.
Required: No
Type: String
Update requires: No interruption
PrivateIpAddress-
The primary private IPv4 address of the network interface.
Required: No
Type: String
Update requires: No interruption
PrivateIpAddresses-
One or more private IPv4 addresses.
Required: No
Type: List of PrivateIpAdd
Update requires: No interruption
SecondaryPrivateIpAddressCount-
The number of secondary private IPv4 addresses to assign to a network interface.
Required: No
Type: Integer
Update requires: No interruption
SubnetId-
The ID of the subnet for the network interface.
Required: No
Type: String
Update requires: No interruption
See Also
-
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest in the Amazon EC2 API Reference
