Skip to main content

network_interface_attachment

Gets an individual network_interface_attachment resource

Overview

Namenetwork_interface_attachment
TypeResource
Descriptionnetwork_interface_attachment
Idawscc.ec2.network_interface_attachment

Fields

NameDatatypeDescription
attachment_idstringThe ID of the network interface attachment.
delete_on_terminationbooleanWhether to delete the network interface when the instance terminates. By default, this value is set to true.
device_indexstringThe network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
instance_idstringThe ID of the instance to which you will attach the ENI.
network_interface_idstringThe ID of the ENI that you want to attach.
ena_srd_specificationobject
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
attachment_id,
delete_on_termination,
device_index,
instance_id,
network_interface_id,
ena_srd_specification
FROM awscc.ec2.network_interface_attachment
WHERE 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

Delete

ec2:DetachNetworkInterface,
ec2:DescribeNetworkInterfaces