Skip to content

Commit

Permalink
terraform: cache: configure as Requester Pays
Browse files Browse the repository at this point in the history
  • Loading branch information
delroth committed Nov 4, 2023
1 parent 4415fe4 commit 7cf2d83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terraform/cache.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ resource "aws_s3_bucket_policy" "cache" {
EOF
}

resource "aws_s3_bucket_request_payment_configuration" "cache" {
provider = aws.us
bucket = aws_s3_bucket.cache.id
payer = "Requester"
}

resource "fastly_service_vcl" "cache" {
name = local.cache_domain
default_ttl = 86400
Expand Down

0 comments on commit 7cf2d83

Please sign in to comment.