Skip to content

Commit ac24992

Browse files
committed
fix cache behavior
1 parent b55ed72 commit ac24992

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform/modules/frontend/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ resource "null_resource" "upload_frontend" {
1919

2020
locals {
2121
api_cache_behaviors = {
22+
"/api/v1/events*" = {
23+
target_origin_id = "LambdaFunction",
24+
cache_policy_id = "658327ea-f89d-4fab-a63d-7e88639e58f6"
25+
},
2226
"/api/v1/syncIdentity" = {
2327
target_origin_id = "SlowLambdaFunction"
2428
cache_policy_id = aws_cloudfront_cache_policy.no_cache.id

0 commit comments

Comments
 (0)