-
Notifications
You must be signed in to change notification settings - Fork 4k
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-cdk/aws-ec2] VpnConnection does not support unresolved tokens #11633
Comments
The only culprit for this error message appears to be here: aws-cdk/packages/@aws-cdk/aws-ec2/lib/vpn.ts Lines 227 to 229 in d2b637e
From a quick trace of the code, I'm not sure this is ELB-specific. Are you creating an Either way, the fix is the same -- just need to add a check for |
can we get a status of this?
That sounds rather simple... Happy to submit a PR if necessary |
Add support to use Token for `VpnConnectionProps.ip` and skip `net.isIPv4(...)` validation in that case. Fixes issue #11633 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Add support to use Token for `VpnConnectionProps.ip` and skip `net.isIPv4(...)` validation in that case. Fixes issue aws#11633 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
I submitted the PR and it was released as part of 1.89.0. @deadlymustard can you update to the latest version and try again? |
Add support to use Token for `VpnConnectionProps.ip` and skip `net.isIPv4(...)` validation in that case. Fixes issue aws#11633 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I am attempting to create a target group using IP addresses returned from a created construct in the same stack. Unfortunately when attempting to create the target group I'm getting the following error:
The IP address '#{Token[Token.200]}' is not a valid Ipv4 address...
This makes sense because this tokenized string definitely is not an Ipv4 address. However, it seems to me that this validation should happen after the token is resolved.
Reproduction Steps
What did you expect to happen?
I expected that my construct would be created and the tokens would be resolved/validated after it was created.
What actually happened?
The following error returned and the stack creation failed.
The IP address '#{Token[Token.200]}' is not a valid Ipv4 address...
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: