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
asked a year ago217 views
1 Answer
1
Accepted Answer

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
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a month ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions