network_interface_attachment
Gets or updates an individual network_interface_attachment
resource, use network_interface_attachments
to retrieve a list of resources or to create or delete a resource.
Overview
Name | network_interface_attachment |
Type | Resource |
Description | Resource Type definition for AWS::EC2::NetworkInterfaceAttachment |
Id | aws.ec2.network_interface_attachment |
Fields
Name | Datatype | Description |
---|---|---|
attachment_id | string | The ID of the network interface attachment. |
delete_on_termination | boolean | Whether to delete the network interface when the instance terminates. By default, this value is set to true. |
device_index | string | The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0. |
instance_id | string | The ID of the instance to which you will attach the ENI. |
network_interface_id | string | The ID of the ENI that you want to attach. |
ena_srd_specification | object | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
attachment_id,
delete_on_termination,
device_index,
instance_id,
network_interface_id,
ena_srd_specification
FROM aws.ec2.network_interface_attachment
WHERE region = 'us-east-1' AND data__Identifier = '<AttachmentId>';
Permissions
To operate on the network_interface_attachment
resource, the following permissions are required:
Read
ec2:DescribeNetworkInterfaces
Update
ec2:ModifyNetworkInterfaceAttribute,
ec2:DescribeNetworkInterfaces,
ec2:AttachNetworkInterface,
ec2:DetachNetworkInterface