Skip to content

Commit

Permalink
add inventory bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Poluri committed Oct 30, 2020
1 parent 7c6082b commit ac20e81
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions s3-other.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ resource "aws_s3_bucket_public_access_block" "apiary_inventory_bucket" {
ignore_public_acls = true
}

resource "aws_s3_bucket_ownership_controls" "apiary_inventory_bucket" {
count = var.s3_enable_inventory == true ? 1 : 0
bucket = aws_s3_bucket.apiary_inventory_bucket[0].bucket

rule {
object_ownership = "BucketOwnerPreferred"
}
}

resource "aws_s3_bucket" "apiary_managed_logs_bucket" {
count = local.enable_apiary_s3_log_management ? 1 : 0
bucket = local.apiary_s3_logs_bucket
Expand Down

0 comments on commit ac20e81

Please sign in to comment.