[CDK] A method to get Elastic IPs associated with a Public Subnet #33723
Unanswered
astrosmash
asked this question in
Q&A
Replies: 1 comment
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I need to get the Elastic IP that is associated with a Public Subnet (map_public_ip_on_launch=True).
I tried the following solutions: 1 2 (see
printEIP()
)However, looks like there's no public subnet's node children. The following code will produce
[]
as output:The question is - is there a way to get the Elastic IP associated with a Public Subnet in AWS CDK?
In the web interface, at the "Elastic IP addresses" page I see the associations with the subnets.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions