Terraform resource for managing an AWS VPC Lattice Service Network.
resource "aws_vpclattice_service_network" "example" {
name = "example"
auth_type = "AWS_IAM"
}
The following arguments are required:
name
- (Required) Name of the service networkThe following arguments are optional:
auth_type
- (Optional) Type of IAM policy. Either NONE
or AWS_IAM
.tags
- (Optional) Key-value mapping of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- ARN of the Service Network.tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.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