Skip to content

Support attachment of InternetGateway to VPC #1216

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

Closed
RedbackThomson opened this issue Mar 11, 2022 · 0 comments · Fixed by aws-controllers-k8s/ec2-controller#48
Closed

Support attachment of InternetGateway to VPC #1216

RedbackThomson opened this issue Mar 11, 2022 · 0 comments · Fixed by aws-controllers-k8s/ec2-controller#48
Assignees
Labels
kind/enhancement Categorizes issue or PR as related to existing feature enhancements.

Comments

@RedbackThomson
Copy link
Contributor

Is your feature request related to a problem?
The EC2 controller currently supports creating an InternetGateway resource, but does not support the InternetGatewayAttachment which means you can't mount it to a VPC without doing so manually. InternetGatewayAttachment does not warrant its own resource, since it does not have an identifier of its own. It would be more appropriate to put a new field for VPCID on the InternetGateway spec.

Describe the solution you'd like

spec:
  vpcID: vpc-abc123
@RedbackThomson RedbackThomson added kind/enhancement Categorizes issue or PR as related to existing feature enhancements. EC2 labels Mar 11, 2022
@RedbackThomson RedbackThomson self-assigned this Mar 30, 2022
ack-bot pushed a commit to aws-controllers-k8s/ec2-controller that referenced this issue Mar 31, 2022
Closes aws-controllers-k8s/community#1216

Description of changes:
Add support for attaching an `InternetGateway` to a `VPC`. The EC2 API exposes a list of `Attachments` when you describe `InternetGateway`, but manual testing shows that you can only attach a gateway to a single VPC - so this is treated as a list of at most one element. I had to create a new VPC for integration tests, since the default VPC we use for all of the other tests already contains an IGW, and you can have at most 1 per VPC.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Categorizes issue or PR as related to existing feature enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant