> For the complete documentation index, see [llms.txt](https://docs.mechcloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mechcloud.io/cloud-computing/stateless-iac/aws/examples-resources-with-cost/ec2/nat-gateway.md).

# Nat Gateway

### Creating a zonal gateway with minimal parameters

```
resources:
  - type: aws_ec2_nat_gateway
    name: nat_gateway1 (zonal)
    props:
      subnet_id: "subnet-12345"    
```

#### Example price for above configuration

```
nat_gateway1 (zonal) (action: create, price: $0.04500/Hrs, monthly: $33.48)
```

### Creating a regional gateway with minimal parameters

```
resources:
  - type: aws_ec2_nat_gateway
    name: nat_gateway2 (regional)
    props:
      availability_mode: regional  
```

#### Example price for above configuration

```
nat_gateway2 (regional) (action: create, price: $0.04500/Hrs, monthly: $33.48)
```
