Resource: aws_api_gateway_vpc_link

Example Usage

resource "aws_lb" "example" {
name = "example"
internal = true
load_balancer_type = "network"
subnet_mapping {
subnet_id = "12345"
}
}
resource "aws_api_gateway_vpc_link" "example" {
name = "example"
description = "example description"
target_arns = [aws_lb.example.arn]
}

Argument Reference

The following arguments are supported:

  • name - (Required) Name used to label and identify the VPC link.
  • description - (Optional) Description of the VPC link.
  • target_arns - (Required, ForceNew) List of network load balancer arns in the VPC targeted by the VPC link. Currently AWS only supports 1 target.
  • tags - (Optional) Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

Import

API Gateway VPC Link can be imported using the id, e.g.,

$ terraform import aws_api_gateway_vpc_link.example 12345abcde

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store