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

ec2_vpc_route_table: Add support to configure Transit Gateway routes in route table #2291

Merged

Conversation

GomathiselviS
Copy link
Collaborator

SUMMARY

Fixes #478
This PR updates the ec2_vpc_route_table "routes" parameter to support the transit gateway id.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Copy link

github-actions bot commented Sep 10, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/4fb8c6db8df2471286f09d1a635ba42b

✔️ ansible-galaxy-importer SUCCESS in 5m 41s
✔️ build-ansible-collection SUCCESS in 10m 37s
✔️ ansible-test-splitter SUCCESS in 4m 17s
✔️ integration-amazon.aws-1 SUCCESS in 20m 36s
Skipped 43 jobs

@alinabuzachis alinabuzachis added the backport-8 PR should be backported to the stable-8 branch label Sep 12, 2024
Copy link
Contributor

@abikouo abikouo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

Comment on lines +111 to +112
- dest: 0.0.0.0/0
gateway_id: "{{ transit_gateway_id }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- dest: 0.0.0.0/0
gateway_id: "{{ transit_gateway_id }}"
- dest: 0.0.0.0/0
gateway_id: "{{ transit_gateway_id }}"
- dest: 1.1.1.1/0
transit_gateway_id: "{{ transit_gateway_id }}"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.1.1.1/0 is (sort-of) the same as 0.0.0.0/0

I'd recommend 192.0.2.0/24 (TEST-NET-1) as the second example dest instead.

Comment on lines 59 to +60
- Routes are specified as dicts containing the keys V(dest) and one of V(gateway_id),
V(instance_id), V(network_interface_id), or V(vpc_peering_connection_id).
V(instance_id), V(network_interface_id), V(transit_gateway_id), or V(vpc_peering_connection_id).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like we might have actually supported this before (if you knew the undocumented key to add here).

Is it worth modifying the arg_spec definition to only accept "good" values?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I thought the same

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding choices with specified values would be best. By doing so, we could add this PR to version 9.0.0, as it might be a breaking change. Am I right? cc @alinabuzachis

@GomathiselviS GomathiselviS added the mergeit Merge the PR (SoftwareFactory) label Sep 16, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/db016423388944de84f5eafed44bd399

✔️ ansible-galaxy-importer SUCCESS in 4m 24s
✔️ build-ansible-collection SUCCESS in 10m 33s
✔️ ansible-test-splitter SUCCESS in 4m 15s
✔️ integration-amazon.aws-1 SUCCESS in 22m 35s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 14d447b into ansible-collections:main Sep 16, 2024
38 checks passed
Copy link

patchback bot commented Sep 16, 2024

Backport to stable-8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-8/14d447b6d16411f058c3a463805e5b5781bee9b3/pr-2291

Backported as #2295

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Sep 16, 2024
… in route table (#2291)

SUMMARY

Fixes #478
This PR updates the ec2_vpc_route_table "routes" parameter to support the transit gateway id.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
Reviewed-by: Mark Chappell
Reviewed-by: GomathiselviS
(cherry picked from commit 14d447b)
braydencw1 pushed a commit to braydencw1/amazon.aws that referenced this pull request Oct 3, 2024
… in route table (ansible-collections#2291)

SUMMARY


Fixes ansible-collections#478
This PR updates the ec2_vpc_route_table "routes" parameter to support the transit gateway id.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
Reviewed-by: Mark Chappell
Reviewed-by: GomathiselviS
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 4, 2024
… in route table (#2291) (#2295)

This is a backport of PR #2291 as merged into main (14d447b).
SUMMARY


Fixes #478
This PR updates the ec2_vpc_route_table "routes" parameter to support the transit gateway id.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8 PR should be backported to the stable-8 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update ec2_vpc_route_table to support Transit Gateway ID
4 participants