Skip to content

Commit 45f4ee4

Browse files
Merge pull request #3 from CapSoftware/feature/aws-resource-fix
fix: satisfy production AWS resource constraints
2 parents 251f6b5 + 0f4e2f7 commit 45f4ee4

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

infra/aws/platform/analytics.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ resource "aws_s3_object" "clickhouse_schema" {
116116
bucket = aws_s3_bucket.clickhouse_native_backups.id
117117
key = "bootstrap/clickhouse-schema.sql"
118118
content = join("\n", [for schema in sort(fileset("${path.module}/../../../clickhouse", "*.sql")) : file("${path.module}/../../../clickhouse/${schema}")])
119-
etag = md5(join("\n", [for schema in sort(fileset("${path.module}/../../../clickhouse", "*.sql")) : file("${path.module}/../../../clickhouse/${schema}")]))
119+
source_hash = sha256(join("\n", [for schema in sort(fileset("${path.module}/../../../clickhouse", "*.sql")) : file("${path.module}/../../../clickhouse/${schema}")]))
120120
server_side_encryption = "aws:kms"
121121
kms_key_id = aws_kms_key.clickhouse.arn
122122
}

infra/aws/platform/delivery.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,16 @@ resource "aws_cloudfront_response_headers_policy" "public" {
174174
access_control_allow_credentials = true
175175

176176
access_control_allow_headers {
177-
items = ["*"]
177+
items = [
178+
"Accept",
179+
"Authorization",
180+
"Content-Type",
181+
"Idempotency-Key",
182+
"If-Match",
183+
"If-None-Match",
184+
"Range",
185+
"X-Requested-With",
186+
]
178187
}
179188

180189
access_control_allow_methods {

0 commit comments

Comments
 (0)