Automate VPN connection and its TGW attachment

Jackie Chen
Jackie Chen’s IT Workshop
1 min readJul 12, 2022

--

If you use the CloudFormation resource AWS::EC2::VPNConnection to create the VPN connection and attach it to the Transit Gateway (TGW), you may notice that it does not return the TGW attachment ID. So it is a bit annoying if you would like to tag the attachment and associate the attachment to a non-default TGW route table.

--

--

Jackie Chen
Jackie Chen’s IT Workshop

We are all apprentices in a craft where no one ever becomes a master.