@@ -143,7 +143,6 @@ Resources:
143143
144144  CoreUrlProd :
145145    Type : AWS::Serverless::Application 
146-     Condition : IsProd 
147146    Properties :
148147      Location : ./custom-domain.yml 
149148      Parameters :
@@ -619,23 +618,7 @@ Resources:
619618              Forward : none 
620619          CachePolicyId : 658327ea-f89d-4fab-a63d-7e88639e58f6  #  caching-optimized
621620        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*" 
639622            TargetOriginId : ApiGatewayOrigin 
640623            ViewerProtocolPolicy : redirect-to-https 
641624            AllowedMethods :
@@ -650,7 +633,7 @@ Resources:
650633              - GET 
651634              - HEAD 
652635            CachePolicyId : !Ref CloudfrontCachePolicy 
653-             OriginRequestPolicyId : b689b0a8-53d0-40ab-baf2-68738e2966ac  #  all except host 
636+             OriginRequestPolicyId : 216adef6-5c7f-47e4-b989-5492eafa07d3 
654637          - PathPattern : " /api/*" 
655638            TargetOriginId : ApiGatewayOrigin 
656639            ViewerProtocolPolicy : redirect-to-https 
@@ -666,7 +649,7 @@ Resources:
666649              - GET 
667650              - HEAD 
668651            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 
670653        ViewerCertificate :
671654          AcmCertificateArn : !FindInMap 
672655            - ApiGwConfig 
0 commit comments