Terraform resource for managing an AWS VPC Lattice Service Network or Service Access log subscription.
resource "aws_vpclattice_access_log_subscription" "example" {
resource_identifier = aws_vpclattice_service_network.example.id
destination_arn = aws_s3.bucket.arn
}
The following arguments are required:
destination_arn
- (Required) Amazon Resource Name (ARN) of the log destination.resource_identifier
- (Required) The ID or Amazon Resource Identifier (ARN) of the service network or service. You must use the ARN if the resources specified in the operation are in different accounts.This resource exports the following attributes in addition to the arguments above:
id
- ID of the access log subscription.arn
- Amazon Resource Name (ARN) of the access log subscription.resource_arn
- Amazon Resource Name (ARN) of the service network or service.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