Search code examples
amazon-web-servicesamazon-ec2vpcaws-vpc

My VPC is greyed out when trying to create a EC2 Instance?


I am trying to create an instance into my already created VPC network. For some reason when I am in the middle of the launch, I cannot select my VPC and it only lets me select a default VPC which is not what I want.

VPC greyed out


Solution

  • The reason for grey-out is because the VPC is created with "dedicated" tenancy. Changing the VPC to"default" tenancy will solve the issue. Apparently, there is no option to make that change in the AWS GUI. Either you have to delete and re-create the VPC with default tenancy or modify the tenancy value using the AWS CLI.

    To modify the instance tenancy attribute of a VPC using the AWS CLI

    Use the modify-vpc-tenancy command to specify the ID of the VPC and instance tenancy value. The only supported value is default.

    aws ec2 modify-vpc-tenancy --vpc-id vpc-1a2b3c4d --instance-tenancy default