Skip to content

Commit

Permalink
Merge pull request #50 from companieshouse/s3-access-logs-module
Browse files Browse the repository at this point in the history
Enable S3 server access logging
  • Loading branch information
marcransome authored May 7, 2024
2 parents 155bbb4 + c03fdd8 commit b8e6b47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions groups/storage/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ resource "aws_s3_bucket_ownership_controls" "logs" {
object_ownership = "BucketOwnerEnforced"
}
}

module "s3_access_logging" {
source = "git@github.com:companieshouse/terraform-modules//aws/s3_access_logging?ref=1.0.264"

aws_account = var.aws_account
aws_region = var.region
source_s3_bucket_name = aws_s3_bucket.logs.id
}

0 comments on commit b8e6b47

Please sign in to comment.