Skip to content

Commit e4b12f0

Browse files
committed
use right policy id
1 parent 73c97bd commit e4b12f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cloudformation/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ Resources:
769769
- GET
770770
- HEAD
771771
CachePolicyId: !Ref CloudfrontCachePolicy
772-
OriginRequestPolicyId: 216adef6-5c7f-47e4-b989-5492eafa07d3
772+
OriginRequestPolicyId: b689b0a8-53d0-40ab-baf2-68738e2966ac
773773
Compress: true
774774
- PathPattern: "/api/v1/organizations"
775775
TargetOriginId: ApiGatewayOrigin
@@ -786,7 +786,7 @@ Resources:
786786
- GET
787787
- HEAD
788788
CachePolicyId: "658327ea-f89d-4fab-a63d-7e88639e58f6"
789-
OriginRequestPolicyId: 216adef6-5c7f-47e4-b989-5492eafa07d3
789+
OriginRequestPolicyId: b689b0a8-53d0-40ab-baf2-68738e2966ac
790790
Compress: true
791791
- PathPattern: "/api/documentation*"
792792
TargetOriginId: ApiGatewayOrigin
@@ -803,7 +803,7 @@ Resources:
803803
- GET
804804
- HEAD
805805
CachePolicyId: "658327ea-f89d-4fab-a63d-7e88639e58f6"
806-
OriginRequestPolicyId: 216adef6-5c7f-47e4-b989-5492eafa07d3
806+
OriginRequestPolicyId: b689b0a8-53d0-40ab-baf2-68738e2966ac
807807
Compress: true
808808
- PathPattern: "/api/*"
809809
TargetOriginId: ApiGatewayOrigin
@@ -819,8 +819,9 @@ Resources:
819819
CachedMethods:
820820
- GET
821821
- HEAD
822+
- OPTIONS
822823
CachePolicyId: !Ref CloudfrontNoCachePolicy # caching disabled
823-
OriginRequestPolicyId: 216adef6-5c7f-47e4-b989-5492eafa07d3
824+
OriginRequestPolicyId: b689b0a8-53d0-40ab-baf2-68738e2966ac
824825
Compress: true
825826
ViewerCertificate:
826827
AcmCertificateArn: !FindInMap

0 commit comments

Comments
 (0)