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
feita há um ano228 visualizações
1 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há um ano
profile picture
ESPECIALISTA
avaliado há 2 meses
  • 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.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas