@@ -143,7 +143,6 @@ Resources:
143
143
144
144
CoreUrlProd :
145
145
Type : AWS::Serverless::Application
146
- Condition : IsProd
147
146
Properties :
148
147
Location : ./custom-domain.yml
149
148
Parameters :
@@ -619,23 +618,7 @@ Resources:
619
618
Forward : none
620
619
CachePolicyId : 658327ea-f89d-4fab-a63d-7e88639e58f6 # caching-optimized
621
620
CacheBehaviors :
622
- - PathPattern : " /api/v1/events"
623
- TargetOriginId : ApiGatewayOrigin
624
- ViewerProtocolPolicy : redirect-to-https
625
- AllowedMethods :
626
- - GET
627
- - HEAD
628
- - OPTIONS
629
- - PUT
630
- - POST
631
- - DELETE
632
- - PATCH
633
- CachedMethods :
634
- - GET
635
- - HEAD
636
- CachePolicyId : !Ref CloudfrontCachePolicy
637
- OriginRequestPolicyId : b689b0a8-53d0-40ab-baf2-68738e2966ac # all except host
638
- - PathPattern : " /api/v1/events/*"
621
+ - PathPattern : " /api/v1/events*"
639
622
TargetOriginId : ApiGatewayOrigin
640
623
ViewerProtocolPolicy : redirect-to-https
641
624
AllowedMethods :
@@ -650,7 +633,7 @@ Resources:
650
633
- GET
651
634
- HEAD
652
635
CachePolicyId : !Ref CloudfrontCachePolicy
653
- OriginRequestPolicyId : b689b0a8-53d0-40ab-baf2-68738e2966ac # all except host
636
+ OriginRequestPolicyId : 216adef6-5c7f-47e4-b989-5492eafa07d3
654
637
- PathPattern : " /api/*"
655
638
TargetOriginId : ApiGatewayOrigin
656
639
ViewerProtocolPolicy : redirect-to-https
@@ -666,7 +649,7 @@ Resources:
666
649
- GET
667
650
- HEAD
668
651
CachePolicyId : 4135ea2d-6df8-44a3-9df3-4b5a84be39ad # caching disabled
669
- OriginRequestPolicyId : b689b0a8-53d0-40ab-baf2-68738e2966ac # all except host - normally, you want to pass the host header but our setup is weird
652
+ OriginRequestPolicyId : 216adef6-5c7f-47e4-b989-5492eafa07d3
670
653
ViewerCertificate :
671
654
AcmCertificateArn : !FindInMap
672
655
- ApiGwConfig
0 commit comments