AWS::EC2::NetworkInterfaceAttachmentAttaches an elastic network interface (ENI) to an Amazon EC2 instance. You can use this resource type to attach additional network interfaces to an instance without interruption.
6 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DeviceIndex | string | RequiredCreate-only |
InstanceId | string | RequiredCreate-only |
NetworkInterfaceId | string | RequiredCreate-only |
DeleteOnTermination | boolean | |
EnaQueueCount | integer | |
EnaSrdSpecification | EnaSrdSpecification |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AttachmentId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::NetworkInterfaceAttachment
Resources:
MyResource:
Type: AWS::EC2::NetworkInterfaceAttachment
Properties:
DeviceIndex: "value"
InstanceId: "my-instanceid"
NetworkInterfaceId: "my-networkinterfaceid"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:AttachNetworkInterfaceec2:DescribeNetworkInterfacesec2:ModifyNetworkInterfaceAttributeec2:DescribeNetworkInterfacesec2:DescribeNetworkInterfacesec2:ModifyNetworkInterfaceAttributeec2:DescribeNetworkInterfacesec2:AttachNetworkInterfaceec2:DetachNetworkInterfaceec2:DetachNetworkInterfaceec2:DescribeNetworkInterfacesEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicAttachmentIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DeviceIndexInstanceIdNetworkInterfaceId