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_subnets.example.ids

  tags = {
    Usage = "example"
  }
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_apigatewayv2_vpc_link using the VPC Link identifier. For example:

import {
  to = aws_apigatewayv2_vpc_link.example
  id = "aabbccddee"
}

Using terraform import, import aws_apigatewayv2_vpc_link using the VPC Link identifier. For example:

% terraform import aws_apigatewayv2_vpc_link.example aabbccddee