Skip to content

Instantly share code, notes, and snippets.

View dthvt's full-sized avatar

Daniel Hagan dthvt

View GitHub Profile
@dthvt
dthvt / parse_xml-aws-vpn-connection.yml
Created March 8, 2019 20:42
parse_xml - parse_xml-aws-vpn-connection.yml
---
vars:
vpn_connection:
# General data
vpn_connection_id: "{{ item.vpn_connection_id.get('id') }}"
customer_gateway_id: "{{ item.customer_gateway_id }}"
vpn_gateway_id: "{{ item.vpn_gateway_id }}"
vpn_connection_type: "{{ item.vpn_connection_type }}"
# Tunnel 1, customer side
@dthvt
dthvt / example_vpn_output.xml
Created March 8, 2019 20:41
parse_xml - example_vpn_output.xml
<?xml version="1.0" encoding="UTF-8"?>
<vpn_connection id="vpn-01d682f82965e8398">
<customer_gateway_id>cgw-0da9023fee170110f</customer_gateway_id>
<vpn_gateway_id>vgw-097ca08d259cd98a7</vpn_gateway_id>
<vpn_connection_type>ipsec.1</vpn_connection_type>
<ipsec_tunnel>
<customer_gateway>
<tunnel_outside_address>
<ip_address>35.161.109.12</ip_address>
</tunnel_outside_address>
### Keybase proof
I hereby claim:
* I am dthvt on github.
* I am danielhagan (https://keybase.io/danielhagan) on keybase.
* I have a public key whose fingerprint is F630 3765 27F0 512B F2A6 61DD BB06
5B25 1FF4 945B
To claim this, I am signing this object: