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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ