What's New
The prior implementation of aws_s3_bucket_logging
caused issues where bucket names for logs were strings known only after a terraform apply
. This PR moves the logic to use a for_each
with options to preserve backwards compatibility in the use of var.log_bucket_name
.
A new variable - var.log_buckets
- takes a map of bucket attributes and creates aws_s3_bucket_logging
resources for each log bucket.
To reference a bucket from a s3 bucket module in the same tf:
module "s3_with_log_bucket" {
log_buckets = tomap({ "main_log_bucket" : module.s3_log_bucket.bucket })
log_prefix = "logs/"
}
To refer to another bucket by name:
module "s3_with_log_bucket" {
log_bucket = "log-bucket"
log_prefix = "logs/"
}
Or multiple buckets by name:
module "s3_with_log_bucket" {
log_bucket_names = toset(["log-bucket", "other-log-bucket"])
log_prefix = "logs/"
}
What's Changed
- Bump bridgecrewio/checkov-action from 12.2851.0 to 12.2852.0 by @dependabot in #512
- Bump bridgecrewio/checkov-action from 12.2852.0 to 12.2855.0 by @dependabot in #513
- Bump github/codeql-action from 3.26.2 to 3.26.3 by @dependabot in #514
- Bump hashicorp/setup-terraform from 3.1.1 to 3.1.2 by @dependabot in #515
- Bump bridgecrewio/checkov-action from 12.2855.0 to 12.2857.0 by @dependabot in #516
- Bump github/codeql-action from 3.26.3 to 3.26.4 by @dependabot in #517
- Bump bridgecrewio/checkov-action from 12.2857.0 to 12.2858.0 by @dependabot in #518
- Bump github/codeql-action from 3.26.4 to 3.26.5 by @dependabot in #519
- Bump bridgecrewio/checkov-action from 12.2858.0 to 12.2860.0 by @dependabot in #520
- Bump github/codeql-action from 3.26.5 to 3.26.6 by @dependabot in #521
- Bump actions/upload-artifact from 4.3.6 to 4.4.0 by @dependabot in #523
- Bump bridgecrewio/checkov-action from 12.2860.0 to 12.2862.0 by @dependabot in #522
- Bump bridgecrewio/checkov-action from 12.2862.0 to 12.2863.0 by @dependabot in #526
- Bump bridgecrewio/checkov-action from 12.2863.0 to 12.2864.0 by @dependabot in #527
- Bump bridgecrewio/checkov-action from 12.2864.0 to 12.2867.0 by @dependabot in #528
- Bump terraform-docs/gh-actions from 1.2.0 to 1.2.2 by @dependabot in #529
- Bump bridgecrewio/checkov-action from 12.2867.0 to 12.2868.0 by @dependabot in #530
- Bump bridgecrewio/checkov-action from 12.2868.0 to 12.2869.0 by @dependabot in #531
- Bump bridgecrewio/checkov-action from 12.2869.0 to 12.2870.0 by @dependabot in #533
- Bump bridgecrewio/checkov-action from 12.2870.0 to 12.2871.0 by @dependabot in #534
- Bump github/codeql-action from 3.26.6 to 3.26.7 by @dependabot in #535
- Bump bridgecrewio/checkov-action from 12.2871.0 to 12.2872.0 by @dependabot in #536
- S3 bucket object with a name and prefix by @matt-heery in #537
- Multiple Log Bucket Locations by @matt-heery in #538
New Contributors
- @matt-heery made their first contribution in #537
Full Changelog: v8.1.0...v8.2.0