Resource: aws_vpclattice_service

Terraform resource for managing an AWS VPC Lattice Service.

Example Usage

Basic Usage

resource "aws_vpclattice_service" "example" {
  name               = "example"
  auth_type          = "AWS_IAM"
  custom_domain_name = "example.com"
}

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:

Timeouts

Configuration options:

Import

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

import {
  to = aws_vpclattice_service.example
  id = "svc-06728e2357ea55f8a"
}

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

% terraform import aws_vpclattice_service.example svc-06728e2357ea55f8a