Blake E
09/28/2021, 7:08 PMsst.NextjsSite
and sst start
worked well (including the cool sst-env
shim). I’m looking to deploy this in ca-central-1
but now that I’m done, I’m deploying and getting the following error:
username-mysite-frontend-website | UPDATE_FAILED | AWS::CloudFront::Distribution | SiteDistribution390DED28 Resource handler returned message: "Invalid request provided: The function must be in region 'us-east-1'. ARN: arn:aws:lambda:ca-central-1:1234:function:username-mysite-fronten-SiteMainFunction123-YYZ:3 (Service: CloudFront, Status Code: 400, Request ID: ABC, Extended Request ID: null)" (RequestToken: ABC, HandlerErrorCode: InvalidRequest)
I thought maybe it was the cloudfront distribution, which I’ve tried to disable, still now joy - any pointers?
// Create a Next.js site
const site = new sst.NextjsSite(this, 'Site', {
path: 'nextjs',
cfDistribution: {
enabled: false,
},
environment: {
// Pass the table details to our app
REGION: scope.region,
API_URLS: Fn.select(0, apiUrls),
},
})
Blake E
09/28/2021, 7:10 PMstage
is using the new aws username option hence username
Blake E
09/28/2021, 7:10 PMca-central-1
is set in my sst.json
Frank
Blake E
09/29/2021, 3:07 AMNextjsSite
construct I can see lambda@edge
is bundled with cloudfront support etc.
I’d settle for an ugly URL but no expecting any solution in near-term - I’ll use another region for now.Frank
Blake E
09/29/2021, 6:47 PMlambda@edge
and using us-east-1
for now (works as expected)Frank
Blake E
09/29/2021, 6:53 PMTomasz Sobczyk
09/30/2021, 11:55 AMFrank
Blake E
10/04/2021, 3:19 PM