» Resource: aws_apigatewayv2_vpc_link

Manages an Amazon API Gateway Version 2 VPC Link.

» Example Usage

resource "aws_apigatewayv2_vpc_link" "example" {
  name               = "example"
  security_group_ids = [data.aws_security_group.example.id]
  subnet_ids         = data.aws_subnet_ids.example.ids

  tags = {
    Usage = "example"
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the VPC Link.
  • security_group_ids - (Required) Security group IDs for the VPC Link.
  • subnet_ids - (Required) Subnet IDs for the VPC Link.
  • tags - (Optional) A map of tags to assign to the VPC Link.

» Attribute Reference

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

  • id - The VPC Link identifier.
  • arn - The VPC Link ARN.

» Import

aws_apigatewayv2_vpc_link can be imported by using the VPC Link identifier, e.g.

$ terraform import aws_apigatewayv2_vpc_link.example aabbccddee