» tencentcloud_nat_gateway

Provides a resource to create a VPC NAT Gateway.

» Example Usage

Basic usage:

resource "tencentcloud_vpc" "main" {
  name       = "terraform test"
  cidr_block = "10.6.0.0/16"
}

# Create EIP
resource "tencentcloud_eip" "eip_dev_dnat" {
  name = "terraform_test"
}
resource "tencentcloud_eip" "eip_test_dnat" {
  name = "terraform_test"
}

# Create NAT Gateway
resource "tencentcloud_nat_gateway" "my_nat" {
  vpc_id           = "${tencentcloud_vpc.main.id}"
  name             = "terraform test"
  max_concurrent   = 3000000
  bandwidth        = 500
  assigned_eip_set = [
    "${tencentcloud_eip.eip_dev_dnat.public_ip}",
    "${tencentcloud_eip.eip_test_dnat.public_ip}",
  ]
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • id - The ID of the NAT Gateway.
  • name - The name of the NAT Gateway.
  • max_concurrent - The upper limit of concurrent connection of NAT gateway.
  • bandwidth - The maximum public network output bandwidth of the gateway (unit: Mbps).
  • assigned_eip_set - Elastic IP arrays bound to the gateway