Skip to content

Instantly share code, notes, and snippets.

@rtrentin73
Created August 23, 2022 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrentin73/514e2743fc0c94e8426b8184ed4d36af to your computer and use it in GitHub Desktop.
Save rtrentin73/514e2743fc0c94e8426b8184ed4d36af to your computer and use it in GitHub Desktop.
resource "aviatrix_gateway_snat" "ingress-gw-east-snat" {
gw_name = "ingress-gw-east"
snat_mode = "customized_snat"
snat_policy {
protocol = "all"
interface = "eth0"
connection = "None"
mark = "65535"
snat_ips = aviatrix_gateway.ingress-gw-east.private_ip
}
sync_to_ha = false
}
resource "aviatrix_gateway_snat" "ingress-gw-central-snat" {
gw_name = "ingress-gw-central"
snat_mode = "customized_snat"
snat_policy {
protocol = "all"
interface = "eth0"
connection = "None"
mark = "65537"
snat_ips = aviatrix_gateway.ingress-gw-central.private_ip
}
sync_to_ha = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment