> 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/vpn-connection.md).

# VPN Connection

### Creating a connection with minimal parameters

```
resources:
  - type: aws_ec2_vpn_connection
    name: vpn-connection1
    props:
      type: "ipsec.1"
      customer_gateway_id: "cgw-1234567890abcdef0"
      vpn_gateway_id: "vgw-1234567890abcdef0"
```

#### Example price for above configuration

```
vpn-connection1 (action: create, price: $0.05000/Hrs, monthly: $37.20)
```
