Resource: aws_vpclattice_service_network

Terraform resource for managing an AWS VPC Lattice Service Network.

Example Usage

Basic Usage

resource "aws_vpclattice_service_network" "example" {
  name      = "example"
  auth_type = "AWS_IAM"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

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 VPC Lattice Service Network using the id. For example:

import {
  to = aws_vpclattice_service_network.example
  id = "sn-0158f91c1e3358dba"
}

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

% terraform import aws_vpclattice_service_network.example sn-0158f91c1e3358dba