AWS::EC2::NetworkInterfaceThe AWS::EC2::NetworkInterface resource creates network interface
18 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
SubnetId | string | RequiredCreate-only |
ConnectionTrackingSpecification | ConnectionTrackingSpecification | |
Description | string | |
EnablePrimaryIpv6 | boolean | |
GroupSet | Array<string> | |
InterfaceType | string | Create-only |
Ipv4PrefixCount | integer | |
Ipv4Prefixes | Array<Ipv4PrefixSpecification> | |
Ipv6AddressCount | integer | |
Ipv6Addresses | Array<InstanceIpv6Address> | |
Ipv6PrefixCount | integer | |
Ipv6Prefixes | Array<Ipv6PrefixSpecification> | |
PrivateIpAddress | string | Create-only |
PrivateIpAddresses | Array<PrivateIpAddressSpecification> | |
PublicIpDnsHostnameTypeSpecification | string | Write-only |
SecondaryPrivateIpAddressCount | integer | |
SourceDestCheck | boolean | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | Network interface id. |
PrimaryIpv6Address | string | The primary IPv6 address |
PrimaryPrivateIpAddress | string | Returns the primary private IP address of the network interface. |
PublicIpDnsNameOptions | PublicIpDnsNameOptions | - |
SecondaryPrivateIpAddresses | Array<string> | Returns the secondary private IP addresses of the network interface. |
VpcId | string | The ID of the VPC |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::NetworkInterface
Resources:
MyResource:
Type: AWS::EC2::NetworkInterface
Properties:
SubnetId: "my-subnetid"
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:CreateNetworkInterfaceec2:DescribeNetworkInterfacesec2:CreateTagsec2:ModifyNetworkInterfaceAttributeec2:ModifyPublicIpDnsNameOptionsec2:DescribeNetworkInterfacesec2:DeleteNetworkInterfaceec2:DescribeNetworkInterfacesec2:DescribeNetworkInterfacesec2:DescribeNetworkInterfacesec2:ModifyNetworkInterfaceAttributeec2:UnassignIpv6Addressesec2:AssignIpv6Addressesec2:DeleteTagsec2:CreateTagsec2:UnassignPrivateIpAddressesec2:AssignPrivateIpAddressesEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
PrivateIpAddressInterfaceTypeSubnetId