Resource: aws_vpclattice_access_log_subscription

Terraform resource for managing an AWS VPC Lattice Service Network or Service Access log subscription.

Example Usage

Basic Usage

resource "aws_vpclattice_access_log_subscription" "example" {
  resource_identifier = aws_vpclattice_service_network.example.id
  destination_arn     = aws_s3.bucket.arn
}

Argument Reference

The following arguments are required:

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 Access Log Subscription using the access log subscription ID. For example:

import {
  to = aws_vpclattice_access_log_subscription.example
  id = "rft-8012925589"
}

Using terraform import, import VPC Lattice Access Log Subscription using the access log subscription ID. For example:

% terraform import aws_vpclattice_access_log_subscription.example rft-8012925589