Resource

dcloud_nat_gateway

IPv4 egress for the machines of a VPC that have no public address: a machine Deutsche Cloud runs and a default route to it. One per VPC.

Example Usage

# Outbound IPv4 for the VPC's machines that have no public address.
resource "dcloud_nat_gateway" "main" {
  vpc_id = dcloud_vpc.main.id
}

Schema

Required

  • vpc_id (String) The VPC to serve. A UUID. Changing it replaces the resource.

Optional

  • tags (Map of String) Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them). Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.
  • node_type (String) The machine type it runs on.
  • private_address (String) Its address in the VPC: the default route's gateway.
  • public_address (String) What the internet sees the VPC's traffic come from.
  • region_id (String) The VPC's region.
  • status (String) creating, available, failed or deleting.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_nat_gateway.main <nat-gateway-id>

Generated from the provider's schema.