HEX
Server: LiteSpeed
System: Linux s1080.usc1.mysecurecloudhost.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: justofft (2594)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/ec2/create-network-interface-permission.rst
**To create a network interface permission**

This example grants permission to account ``123456789012`` to attach network interface ``eni-1a2b3c4d`` to an instance.

Command::

  aws ec2 create-network-interface-permission --network-interface-id eni-1a2b3c4d --aws-account-id 123456789012 --permission INSTANCE-ATTACH

Output::

  {
    "InterfacePermission": {
        "PermissionState": {
            "State": "GRANTED"
        }, 
        "NetworkInterfacePermissionId": "eni-perm-06fd19020ede149ea", 
        "NetworkInterfaceId": "eni-1a2b3c4d", 
        "Permission": "INSTANCE-ATTACH", 
        "AwsAccountId": "123456789012"
    }
  }