admin管理员组文章数量:1410689
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:
for subnet in vpc.public_subnets:
print(node.children)
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.
Similar SO answers (How to list the Elastic IP (EIP) addresses via CDK, Get EIP as output from aws-cdk generated VPC definition) do not appear to be working anymore.
Thank you
本文标签: amazon web servicesAWS CDK A method to get Elastic IPs associated with a Public SubnetStack Overflow
版权声明:本文标题:amazon web services - AWS CDK: A method to get Elastic IPs associated with a Public Subnet - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744825612a2627042.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论