Skip to content

Commit

Permalink
Move s3_access_logging module reference to main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
JMetherell committed May 3, 2024
1 parent 53bd4e9 commit 1c68d2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 14 additions & 0 deletions groups/fil/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,17 @@ terraform {
provider "aws" {
region = var.region
}

####################################################################################################
## S3 access logging
####################################################################################################

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

count = local.ef_presenter_data_count

aws_account = var.aws_account
aws_region = var.region
source_s3_bucket_name = local.ef_presenter_data_bucket_name
}
8 changes: 0 additions & 8 deletions groups/fil/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,3 @@ resource "aws_s3_bucket_public_access_block" "ef_presenter_data" {
ignore_public_acls = true
restrict_public_buckets = true
}

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

aws_account = var.aws_account
aws_region = var.region
source_s3_bucket_id = aws_s3_bucket.ef_presenter_data.id
}

0 comments on commit 1c68d2c

Please sign in to comment.