Skip to content

Commit

Permalink
Merge pull request #2 from 3scale-ops/feat/pin-s3-module-version
Browse files Browse the repository at this point in the history
Bug/Pin aws s3 module version to current latest v2.9.0
  • Loading branch information
3scale-robot authored Sep 7, 2021
2 parents c773502 + 5b2f032 commit 022a2cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module "cloudtrail_label" {
## Cloudtrail bucket
module "cloudtrail_bucket" {
source = "terraform-aws-modules/s3-bucket/aws"
version = "v2.9.0"
bucket = module.cloudtrail_label.id
acl = "private"
block_public_acls = true
Expand Down Expand Up @@ -241,7 +242,7 @@ data "aws_iam_policy_document" "cloudtrail_kms_policy" {
## Cloudtrail
resource "aws_cloudtrail" "cloudtrail" {
name = module.cloudtrail_label.id
s3_bucket_name = module.cloudtrail_bucket.this_s3_bucket_id
s3_bucket_name = module.cloudtrail_bucket.s3_bucket_id
include_global_service_events = true
is_multi_region_trail = true
enable_logging = var.enable_logging
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

output "cloudtrail_bucket_name" {
value = module.cloudtrail_bucket.this_s3_bucket_id
value = module.cloudtrail_bucket.s3_bucket_id
}

0 comments on commit 022a2cd

Please sign in to comment.