---
id: "digitalocean-vpc-nat-gateway"
type: "component"
kind: "nat-gateway"
provider: "digitalocean"
category: "edge"
docs: "https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/vpc_nat_gateway"
url: "https://localhost:3000/catalogue/components/digitalocean-vpc-nat-gateway"
---

# DigitalOcean VPC NAT Gateway

Managed egress gateway giving VPC resources stable outbound public addresses.

| | |
|---|---|
| Provider | [digitalocean](https://localhost:3000/catalogue?provider=digitalocean) |
| Kind | [NAT gateway](https://localhost:3000/catalogue/kinds/nat-gateway) |
| Category | Edge |
| Official docs | [https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/vpc_nat_gateway](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/vpc_nat_gateway) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `attachedVpcCount` | integer | — | no | — | inherited |
| `gatewayType` | enum | `public` | no | "public" | inherited |
| `idleTimeoutMinutes` | integer | — | no | — | inherited |
| `logging` | boolean | — | no | false | **false** |
| `managed` | boolean | — | no | false | **true** |
| `size` | integer | — | no | 1 | inherited |
| `staticIpCount` | integer | — | no | — | inherited |
| `zoneRedundant` | boolean | — | no | — | inherited |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 8

- [NAT Gateway](https://localhost:3000/catalogue/components/alibaba-nat-gateway.md) `alibaba-nat-gateway` — alibabacloud
- [NAT gateway](https://localhost:3000/catalogue/components/aws-nat-gateway.md) `aws-nat-gateway` — aws
- [Azure NAT Gateway](https://localhost:3000/catalogue/components/azure-nat-gateway.md) `azure-nat-gateway` — azure
- [Generic NAT gateway](https://localhost:3000/catalogue/components/nat-gateway.md) `nat-gateway` — default
- [Cloud NAT](https://localhost:3000/catalogue/components/google-cloud-nat.md) `google-cloud-nat` — gcp
- [Public Gateway for VPC](https://localhost:3000/catalogue/components/ibm-public-gateway.md) `ibm-public-gateway` — ibm
- [NAT Gateway](https://localhost:3000/catalogue/components/oci-nat-gateway.md) `oci-nat-gateway` — oci
- [NAT Service](https://localhost:3000/catalogue/components/outscale-nat-service.md) `outscale-nat-service` — outscale

## Use it in a design

```yaml
nodes:
  - { id: "digitalocean-vpc-nat-gateway", component: "digitalocean-vpc-nat-gateway" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# DigitalOcean VPC NAT Gateway: a managed egress gateway attached to one or more VPCs, giving
# the resources behind it a stable set of public IPv4 addresses for outbound traffic
# ("digitalocean_vpc_nat_gateway", DigitalOcean Terraform provider). Required arguments are the
# type (PUBLIC), region, size and the ingress VPC list; TCP, UDP and ICMP egress idle timeouts
# are optional and unset unless given. The resource is in private preview.
schemaVersion: "1"
type: "component"
id: "digitalocean-vpc-nat-gateway"
kind: "nat-gateway"
provider: "digitalocean"
docs: "https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/vpc_nat_gateway"
defaults:
  managed: true
  logging: false
properties:
  gatewayType:
    type: "enum"
    values: ["public"]
    default: "public"
  size:
    type: "integer"
    default: 1
  attachedVpcCount:
    type: "integer"
```

Human page: https://localhost:3000/catalogue/components/digitalocean-vpc-nat-gateway
