Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create command results in 400 if default VPC is unavailable for ec2 provider #74

Closed
thesurlydev opened this issue Aug 10, 2020 · 2 comments
Assignees

Comments

@thesurlydev
Copy link
Contributor

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:

./inletsctl create -f ~/Downloads/access-key --secret-key-file ~/Downloads/secret-access-key -p ec2 -r us-west-2

Context

Your Environment

  • inlets version inlets --version: 0.5.6 and master 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:

@Waterdrips
Copy link
Contributor

/assign: digitalsanctum

@Waterdrips
Copy link
Contributor

/close this has been implemented here an in inlets operator. Many thanks @digitalsanctum

@derek derek bot closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants