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
posta un anno fa228 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta un anno fa
profile picture
ESPERTO
verificato 2 mesi fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande