Open adosztal opened 4 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @jillr @s-hertel @tremble @wimnat click here for bot help
@adosztal thank you for reporting this. Would you be willing to submit a PR for this?
@gravesm, sure, I just submitted it. Thanks.
SUMMARY
AWS allows creating VPN tunnels not only between a VGW and CGWs but a Transit Gateway (TGW) and CGWs. It would be nice if this connection type was was supported by Ansible too. Note: I already raised this in ansible/ansible#67526 but it was auto-closed after the repo migration.
ISSUE TYPE
COMPONENT NAME
ec2_vpc_vpn
ADDITIONAL INFORMATION
The only difference is calling the AWS CreateVpnConnection API using "TransitGatewayId" instead of "VpnGatewayId".
The task could look like this:
Note: The output of ec2_vpc_vpn_info shows this key (line 17) after manually creating a tunnel:
I tried what happens if I replace
vpn_gateway_id
withtransit_gateway_id
(see ec2_transit_gateway_vpn.py.txt) and the connection was created. I guess it's too quick and dirty for a final solution but at least confirms that it works. :slightly_smiling_face:Output: