CmdID

CmdID / aws / aws ec2

aws ec2 attach-classic-link-vpc

This action is deprecated. AWS CLI reference

1 example 4 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 link (attach) an EC2-Classic instance to a VPC

The following attach-classic-link-vpc example links instance i-1234567890abcdef0 to VPC vpc-88888888 through the VPC security group sg-12312312.

aws ec2 attach-classic-link-vpc --instance-id i-1234567890abcdef0 --vpc-id vpc-88888888 --groups sg-12312312Identify
--instance-idThe ID of the EC2-Classic instance.
--vpc-idThe ID of the ClassicLink-enabled VPC.
--groupsThe IDs of the security groups.
Its output
{
    "Return": true
}

Options

4 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--groupsThe IDs of the security groups.
--instance-idThe ID of the EC2-Classic instance.
--vpc-idThe ID of the ClassicLink-enabled VPC.