Detaching an FNI from an Instance
You can detach a flexible network interface (FNI) from an instance it is attached to, at any time. Network traffic directed to this FNI stops being directed to the instance once the FNI is detached.
This action updates the state of the FNI from
available. For more information, see About FNIs > FNIs Attachment to Instances.
You cannot, however, detach the primary network interface from an instance.
Click Network/Security > Flexible Network Interfaces.
Click the FNI you want to detach from an instance.
The FNI is selected.
Click Detach .
A confirmation dialog box appears.
Click Detach to validate.
The FNI is detached from the selected instance.
To detach an FNI from an instance, use the detach-network-interface command following this syntax:
$ aws ec2 detach-network-interface \ --profile YOUR_PROFILE \ --attachment-id eni-attach-1234abcd \ --endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
attachment-id: The ID of the attachment operation.
endpoint: The endpoint corresponding to the Region you want to send the request to.
The FNI is detached from the instance.
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.