@cryptotaxi247 / infra-1 / commits / 7cf2d83e

terraform: cache: configure as Requester Pays

Pierre Bourdon committed Oct 31, 2023 at 17:13 UTC 7cf2d83eca96874d93a5c1f9da72f930d3a9785f
1 file changed +6
terraform/cache.tf
+6
@@ -101,6 +101,12 @@ resource "aws_s3_bucket_policy" "cache" {
101 EOF
102 }
103
104 +resource "aws_s3_bucket_request_payment_configuration" "cache" {
105 + provider = aws.us
106 + bucket = aws_s3_bucket.cache.id
107 + payer = "Requester"
108 +}
109 +
110 resource "fastly_service_vcl" "cache" {
111 name = local.cache_domain
112 default_ttl = 86400