-
Notifications
You must be signed in to change notification settings - Fork 4.1k
(aws-ec2): AddRouteOptions does not include RouterType for Transit Gateway and other types #19057
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
Comments
We currently don't support this, however this should be a pretty simple fix. We accept contributions 🙂 In the meantime, you can use escape hatches to set the transitGatewayId property on the underlying CfnRoute created by addRoute. |
I'm not familiar with using the escape hatches. What would this look like for TGW? |
Fixes #19057 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#aws-resource-ec2-route-properties ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Fixes aws#19057 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#aws-resource-ec2-route-properties ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
General Issue
Users are unable to specify transit gateway as a routertype when specifying a route for vpc subnets. As well as a variety of other types available through the AWS console.
The Question
I want to be able to provision routes to my transit gateway. As it stands, not all of the router_type are available via CDK.
The console allows users to specify a variety of options not yet available in CDK: Transit Gateway, Virtual Private Gateway, Outposts Local Gateway, etc.
None of the existing options work, including aws_ec2.RouterType.GATEWAY which specifies an Internet Gateway.
Example:
Is there a way around this to add a route to a transit gateway to my route table?
Link to documentation: https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_ec2/RouterType.html#aws_cdk.aws_ec2.RouterType
CDK CLI Version
1.140.0
Framework Version
1.140.0
Node.js Version
8.1.2
OS
macOS 12.2.1
Language
Python
Language Version
Python 3.9.10
Other information
This appears to be a missing feature/bug in all of the languages across CDK v1 and v2.
The text was updated successfully, but these errors were encountered: