I am trying to create a test EC2 instance in my Private subnet through Bastion (using SSH multiplexing) but was kept getting the above error.
Online search suggested that it was the Security Group for Custom VPC's should be declared using GroupID (rather than GroupName for default VPC), but that did not work.
The issue was resolved by providing the subnet _id field in my Vagrantfile and it created the instance without any errors inside my Private Subnet
I am trying to create a test EC2 instance in my Private subnet through Bastion (using SSH multiplexing) but was kept getting the above error. Online search suggested that it was the Security Group for Custom VPC's should be declared using GroupID (rather than GroupName for default VPC), but that did not work. The issue was resolved by providing the subnet _id field in my Vagrantfile and it created the instance without any errors inside my Private Subnet
config.vm.box = "aws" config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider :aws do |aws, override| aws.access_key_id = ENV['AWS_ACCESS_KEY'] aws.secret_access_key = ENV['AWS_SECRET_KEY'] aws.region = "us-west-2"
aws.availability_zone = "us-west-2"
end