Data Source: aws_customer_gateway

Get an existing AWS Customer Gateway.

Example Usage

data "aws_customer_gateway" "foo" {
  filter {
    name   = "tag:Name"
    values = ["foo-prod"]
  }
}

resource "aws_vpn_gateway" "main" {
  vpc_id          = aws_vpc.main.id
  amazon_side_asn = 7224
}

resource "aws_vpn_connection" "transit" {
  vpn_gateway_id      = aws_vpn_gateway.main.id
  customer_gateway_id = data.aws_customer_gateway.foo.id
  type                = data.aws_customer_gateway.foo.type
  static_routes_only  = false
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: