Is there a method/way to describe EC2 VPN connections using CDK?

0

I couldn't see one, but something like the CLI aws ec2 describe-vpn-connections command would be handy.

I'd like to extract the tunnel outside IP addresses, so that I can set them for a test harness VPC.

Thank you, Gary

gary
已提问 1 年前228 查看次数
1 回答
1
已接受的回答

I also checked the methods and could not find anything that could confirm the IP address.
It is likely that the CDK will not be able to see it either, as there does not seem to be anything in CloudFormation that outputs an external IP in the return value.

profile picture
专家
已回答 1 年前
profile picture
专家
已审核 2 个月前
  • Thanks Riku, I can use bash to string things together

  • Hmm, that 1 value is required for a VPN customer gateway file and a security group, which I now need to edit using a mix of AWS CLI and SSH in a bash script. Not so nice looking now. I'll check if it can be added.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则