Skip to content

Commit

Permalink
Explicitly set the provider on resources that may live in a different…
Browse files Browse the repository at this point in the history
… region
  • Loading branch information
anero committed Oct 12, 2022
1 parent a3b22c6 commit 53201e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "aws_s3_bucket" "manifest" {
}

resource "aws_s3_bucket_lifecycle_configuration" "manifest" {
provider = aws.controlshift
bucket = aws_s3_bucket.manifest.id

# expire the ingested manifests after 5 days after they have been processed to save disk space while providing enough
Expand All @@ -29,11 +30,13 @@ resource "aws_s3_bucket_lifecycle_configuration" "manifest" {
}

resource "aws_s3_bucket_acl" "manifest" {
provider = aws.controlshift
bucket = aws_s3_bucket.manifest.id
acl = "private"
}

resource "aws_s3_bucket_server_side_encryption_configuration" "manifest" {
provider = aws.controlshift
bucket = aws_s3_bucket.manifest.bucket

rule {
Expand Down

0 comments on commit 53201e5

Please sign in to comment.