digitalocean_vpc_nat_gateway

Generated on 16 Jun 2025 from Terraform version v2.56.0

Get information on a VPC NAT Gateway for use with other managed resources This datasource provides all the VPC NAT Gateway properties as configured on the DigitalOcean account. This is useful if the VPC NAT Gateway in question is not managed by Terraform, or any of the relevant data would need to be referenced in other managed resources.

Example Usage

Get the VPC NAT Gateway by name:

data "digitalocean_vpc_nat_gateway" "my-imported-vpc-nat-gateway" {
  name = digitalocean_vpc_nat_gateway.my-existing-vpc-nat-gateway.name
}

Get the VPC NAT Gateway by ID:

data "digitalocean_vpc_nat_gateway" "my-imported-vpc-nat-gateway" {
  id = digitalocean_vpc_nat_gateway.my-existing-vpc-nat-gateway.id
}

Argument Reference

The following arguments are supported:

  • name - (Optional) The name of VPC NAT Gateway.
  • id - (Optional) The ID of VPC NAT Gateway.

Attributes Reference

See the VPC NAT Gateway Resource for details on the returned attributes - they are identical.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.