We have a custom VPC with public and private subnets, in several Availbility Zone (AZ). Via, AWS CLI, we would like to launch/run ec2 instances in that VPC, private subnets, spread out to different AZ, thus spread out among the private subnet (as a subnet can only be in a single AZ)
From thhis doc, when launching without subnet: the cli will choose the default VPC and a subnet for you. But I cannot see how to specify a VPC rather than using the default one.
Is there a convenient solution that is not manually specifying subnet (and managing ourself the spread out) ?
This is actually a bit similar to this question: Boto3 run_instances: How to specify more than one Subnet?