-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-ec2: NatProvider.instanceV2 primary network interface #29720
aws-ec2: NatProvider.instanceV2 primary network interface #29720
Comments
Using $ grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Amazon Linux 2023.4.20240401"
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default ip-10-0-0-1.ec2 0.0.0.0 UG 512 0 0 ens5
ip-10-0-0-0.ec2 0.0.0.0 255.255.192.0 U 512 0 0 ens5
ip-10-0-0-1.ec2 0.0.0.0 255.255.255.255 UH 512 0 0 ens5
ip-10-0-0-2.ec2 0.0.0.0 255.255.255.255 UH 512 0 0 ens5
$ route | awk '/^default/{print $NF}'
ens5 |
I'm going to take this on, I'll also add a Should have a PR ready by the end of the day 👍 |
|
1 similar comment
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
Provided user data by NatInstanceProviderV2 uses incorrect primary network interface eth0 instead of ens5 (or similar).
Expected Behavior
Nat instance forwards traffic
Current Behavior
Traffic not forwarded
Reproduction Steps
Simply use the example snippet from cdk docs:
Possible Solution
Instead of hardcoding the network interface, use the actual from the os.
Additional Information/Context
No response
CDK CLI Version
2.133.0
Framework Version
No response
Node.js Version
OS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: