NatGateway
A resource of the AWS provider, version 0.3.0, in its Networking group. Import it with:
import NatGateway from "aws/networking"Example
resource NatGateway example {
subnetId = "example-value"
allocationId = "example-value"
connectivityType = "public"
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
subnetId | string | — | No | The subnet ID where the NAT gateway will be created |
allocationId | string | — | No | The allocation ID of the Elastic IP for public NAT gateway |
connectivityType | string | "public" | No | The connectivity type for the NAT gateway Allowed: "public", "private" |
tags | object | — | No | Tags to apply to the NAT gateway |
Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
natGatewayId | string | No | The NAT gateway ID assigned by AWS |
state | string | No | The current state of the NAT gateway |
vpcId | string | No | The VPC ID that contains the NAT gateway |
publicIp | string | No | The public IP address associated with the NAT gateway |
privateIp | string | No | The private IP address of the NAT gateway |