Skip to content

Commit

Permalink
make template smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 31, 2023
1 parent 6c2bdff commit 5f18d21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 1 addition & 3 deletions vpn-transit-gateway/templates/vpn_tunnel_status.alarm.tpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

# VPN Tunnel Status Change

## ${account_alias} ${region} ${label} tunnel ${tunnel_number}

* account = ${account_alias} ${account_id}
* region = ${region}
* label = ${full_label}
Expand All @@ -23,5 +21,5 @@
* loopback = ${loopback}
* endpoint = ${customer_address}

_version = ${module_name} ${module_version}_
_${module_version}_

Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@

# VPN All Tunnel Status Change

## ${site_details[0].account_alias} ${site_details[0].region}

* account = ${site_details[0].account_alias} ${site_details[0].account_id}
* region = ${site_details[0].region}
* label = ${site_details[0].full_label}
* vpc
* id = ${site_details[0].vpc_id}
* cidr_block = ${site_details[0].cidr_block}
Expand All @@ -15,7 +12,8 @@
* loopback = ${site_details[0].loopback}
* endpoint = ${site_details[0].customer_address}
%{ for t in site_details ~}
* ${t.site} ${t.tunnel_number} ${t.inside_cidr} interface ${t.interface_number}
* ${t.site} ${t.tunnel_number} ${t.inside_cidr}
%{ endfor ~}

_version = ${module_name} ${module_version}_
_${module_version}_

Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

# VPN Site Tunnel Status Change

## ${site_details[0].account_alias} ${site_details[0].region}

* account = ${site_details[0].account_alias} ${site_details[0].account_id}
* region = ${site_details[0].region}
* label = ${site_details[0].full_label}
Expand All @@ -18,4 +16,5 @@
* ${t.tunnel_number} ${t.inside_cidr} interface ${t.interface_number}
%{ endfor ~}

_version = ${module_name} ${module_version}_
_${module_version}_

0 comments on commit 5f18d21

Please sign in to comment.