Resource: aws_apprunner_vpc_connector

Manages an App Runner VPC Connector.

Example Usage

resource "aws_apprunner_vpc_connector" "connector" {
  vpc_connector_name = "name"
  subnets            = ["subnet1", "subnet2"]
  security_groups    = ["sg1", "sg2"]
}

Argument Reference

The following arguments supported:

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 App Runner vpc connector using the arn. For example:

import {
  to = aws_apprunner_vpc_connector.example
  id = "arn:aws:apprunner:us-east-1:1234567890:vpcconnector/example/1/0a03292a89764e5882c41d8f991c82fe"
}

Using terraform import, import App Runner vpc connector using the arn. For example:

% terraform import aws_apprunner_vpc_connector.example arn:aws:apprunner:us-east-1:1234567890:vpcconnector/example/1/0a03292a89764e5882c41d8f991c82fe