Resource: aws_vpclattice_service_network_vpc_association

Terraform resource for managing an AWS VPC Lattice Service Network VPC Association.

Example Usage

Basic Usage

resource "aws_vpclattice_service_network_vpc_association" "example" {
  vpc_identifier             = aws_vpc.example.id
  service_network_identifier = aws_vpclattice_service_network.example.id
  security_group_ids         = [aws_security_group.example.id]
}

Argument Reference

The following arguments are required:

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import VPC Lattice Service Network VPC Association using the id. For example:

import {
  to = aws_vpclattice_service_network_vpc_association.example
  id = "snsa-05e2474658a88f6ba"
}

Using terraform import, import VPC Lattice Service Network VPC Association using the id. For example:

% terraform import aws_vpclattice_service_network_vpc_association.example snsa-05e2474658a88f6ba