A failure occurs when attempting to create an exit node via inletsctl create command for ec2 provider.
Expected Behaviour
An ec2 instance and security group are successfully created.
Current Behaviour
A 400 status is returned with the following message when a default VPC is unavailable:
InvalidParameter: The AssociatePublicIpAddress parameter is only supported for VPC launches.
Possible Solution
Explicitly require vpc-id and subnet-id when provider is ec2. This fixes the above issue and allows users to have full control of where the exit node will be placed. I will be following up with proposed fix via PR shortly.
Steps to Reproduce (for bugs)
Execute the following command for an AWS account/region with no default VPC:
A failure occurs when attempting to create an exit node via
inletsctl create
command forec2
provider.Expected Behaviour
An ec2 instance and security group are successfully created.
Current Behaviour
A 400 status is returned with the following message when a default VPC is unavailable:
Possible Solution
Explicitly require
vpc-id
andsubnet-id
when provider isec2
. This fixes the above issue and allows users to have full control of where the exit node will be placed. I will be following up with proposed fix via PR shortly.Steps to Reproduce (for bugs)
Execute the following command for an AWS account/region with no default VPC:
Context
Your Environment
inlets version
inlets --version
:0.5.6
andmaster
branch as of Aug 10.Docker/Kubernetes version
docker version
/kubectl version
:Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 20.04
Link to your project or a code example to reproduce issue: