CmdID

CmdID / aws / aws ec2

aws ec2 create-network-interface-permission

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a network interface permission

The following create-network-interface-permission example grants permission to account 123456789012 to attach network interface eni-1a2b3c4d to an instance.

aws ec2 create-network-interface-permission --network-interface-id eni-1a2b3c4d --aws-account-id 123456789012 --permission INSTANCE-ATTACHIdentify
--network-interface-idThe ID of the network interface.
--aws-account-idThe Amazon Web Services account ID.
--permissionThe type of permission to grant.
Its output
{
    "InterfacePermission": {
        "PermissionState": {
            "State": "GRANTED"
        },
        "NetworkInterfacePermissionId": "eni-perm-06fd19020ede149ea",
        "NetworkInterfaceId": "eni-1a2b3c4d",
        "Permission": "INSTANCE-ATTACH",
        "AwsAccountId": "123456789012"
    }
}

For more information, see Elastic network interfaces in the Amazon EC2 User Guide.

Options

5 in the AWS CLI reference
--aws-account-idThe Amazon Web Services account ID.
--aws-serviceThe Amazon Web Services service.
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--network-interface-idThe ID of the network interface.
--permissionThe type of permission to grant.