Difference between revisions of "Terraform resource: aws s3 bucket logging"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
− | [[aws_s3_bucket_server_side_encryption_configuration]] | + | resource "aws_s3_bucket_logging" "example" { |
− | + | bucket = aws_s3_bucket.example.id | |
+ | |||
+ | target_bucket = aws_s3_bucket.log_bucket.id | ||
+ | target_prefix = "log/" | ||
+ | } | ||
+ | |||
+ | == Related == | ||
+ | * [[aws_s3_bucket_server_side_encryption_configuration]] | ||
+ | * [[Logging options for Amazon S3]] | ||
== See also == | == See also == |
Revision as of 03:55, 17 June 2024
resource "aws_s3_bucket_logging" "example" { bucket = aws_s3_bucket.example.id target_bucket = aws_s3_bucket.log_bucket.id target_prefix = "log/" }
Related
See also
- Terraform S3 resources:
aws_s3_bucket, aws_s3_object, aws_s3_bucket_policy, aws_s3_bucket_acl, aws_s3_bucket_website_configuration, aws_s3_bucket cors_configuration, aws_s3_account_public_access_block
, Terraform module: s3-bucket,aws_s3_bucket_versioning, aws_s3_bucket_server_side_encryption_configuration, aws_s3_bucket_logging
Advertising: