Skip to content

orange-cloudavenue/terraform-cloudavenue-nats

Repository files navigation

Terraform cloudavenue NAT module

This is the NAT module using cloudavenue Provider.
Its allows you to configure the NAT configurations.

Useful links:

Usage

Basic usage of this module is as follows:

module "nat_rules" {
  source = "orange-cloudavenue/nats/cloudavenue"
  rules  = [
    {
      "name"                      = "example-dnat"
      "edge_gateway_name"         = cloudavenue_edgegateway.example.name
      "rule_type"                 = "DNAT"
      "description"               = "description DNAT example"
      "external_address"          = "89.32.25.10"
      "internal_address"          = "4.11.11.11"
      "priority"                  = 25
    },
    {
      "name"                      = "example-snat"
      "edge_gateway_name"         = cloudavenue_edgegateway.example.name
      "rule_type"                 = "SNAT"
      "description"               = "description SNAT example"
      "external_address"          = "89.32.25.10"
      "internal_address"          = "11.11.11.0/24"
      "priority"                  = 10
    }
  ]
}

Requirements

Name Version
terraform >= 1.3
cloudavenue ~> 0.14.0

Resources

Name Type
cloudavenue_edgegateway_nat_rule.nat-rule resource

Inputs

Name Description Type Default Required
rules n/a
list(object( {
name = string
edge_gateway_id = optional(string)
edge_gateway_name = optional(string)
enabled = optional(bool)
description = optional(string)
rule_type = string
external_address = string
internal_address = string
dnat_external_port = optional(string)
snat_destination_address = optional(string)
priority = optional(number)
firewall_match = optional(string)
}))
n/a yes

Outputs

No outputs.

Contributing

This provider is open source and contributions are welcome.

If you want to contribute to this provider, please read the contributing guidelines.

You may also report issues or feature requests on the GitHub issue tracker.

You can consult a listing of resources and datasources.