aws_network_interface_attachment: Add import functionality #26655
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
service/vpc
Issues and PRs that pertain to the vpc service.
Milestone
Community Note
Description
Please implement terraform import for aws_network_interface_attachment.
We cannot use the attachment block of aws_network_interface that support import already.
It does not support a detach (just deleting the attachment block does not result in changes)
We need to have more control about attaching and detaching of nics.
Use cases:
Since there is code to refresh the state file, a READ functionality is already in place. (at least for aws_network_interface)
And so I assume the import functionality is not too much to ask for it, isn't it?
New or Affected Resource(s)
Potential Terraform Configuration
If someone want to import, maybe lookup the attachment_id in statefile from an already imported nic:
or maybe with a nic_id/instance_id combination:
References
The text was updated successfully, but these errors were encountered: