Feature Request: per-function region specification

I am deploying my app to ap-southeast-2 and want to add a CloudFront origin-response handler. I am getting errors when trying to deploy a new cloudfront event function:

CloudFront associated functions have to be deployed to the us-east-1 region.

Here is my serverless code:

# Cloudfront
handleOriginResponse:
  handler: cloudfront.handleOriginResponse
  region: us-east-1 // <--this would be ideal
  events:
    - cloudFront:
        eventType: origin-response
        pathPattern: /*
        origin:
          DomainName: mywebsite.come
          OriginPath: /
          CustomOriginConfig:
            OriginProtocolPolicy: match-viewer
1 Like

I came across this answer which is a nifty way of deploying to multiple-regions for specific functions - however it is not a silver bullet, especially if youā€™re not wanting to deploy your entire stack on multiple regions: