Resource: aws_apprunner_vpc_ingress_connection

Manages an App Runner VPC Ingress Connection.

Example Usage

resource "aws_apprunner_vpc_ingress_connection" "example" {
  name        = "example"
  service_arn = aws_apprunner_service.example.arn

  ingress_vpc_configuration {
    vpc_id          = aws_default_vpc.default.id
    vpc_endpoint_id = aws_vpc_endpoint.apprunner.id
  }

  tags = {
    foo = "bar"
  }
}

Argument Reference

The following arguments supported:

Ingress VPC Configuration

The ingress_vpc_configuration block supports the following argument:

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 Ingress Connection using the arn. For example:

import {
  to = aws_apprunner_vpc_ingress_connection.example
  id = "arn:aws:apprunner:us-west-2:837424938642:vpcingressconnection/example/b379f86381d74825832c2e82080342fa"
}

Using terraform import, import App Runner VPC Ingress Connection using the arn. For example:

% terraform import aws_apprunner_vpc_ingress_connection.example "arn:aws:apprunner:us-west-2:837424938642:vpcingressconnection/example/b379f86381d74825832c2e82080342fa"