-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
getting edge-lambda issue after version update:
edge-lambda Custom::CrossRegionExportWriterCustomResourceProvider AWS::Lambda::Function CREATE_FAILED Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (Service: Lambda, Status Code: 400, Request ID: xyz) (SDK Attempt Count: 1)" (RequestToken: xyz, HandlerErrorCode: InvalidRequest)
Code:
const edgeLambda = new experimental.EdgeFunction(
stack,
'lambdaName',
{
handler: 'index.handler',
runtime: Runtime.NODEJS_20_X,
code: Code.fromAsset('packages/handler/dist'),
stackId: `${app.logicalPrefixedName('edge-lambda')}`,
timeout: Duration.seconds(parseInt(LAMBDA_TIMEOUT)),
memorySize: parseInt(LAMBDA_MEMORY),
},
);
Metadata
Metadata
Assignees
Labels
No labels