webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Failed to use AWS jakarta region (ap-southeast-3)

Open ridhozhr10 opened this issue 1 year ago • 0 comments

Version

No response

Operating System

No response

Browser

No response

What are the steps to reproduce this bug?

using

AWS_REGION=ap-southeast-3

in .env file will cause the error when trying to deploy apps/api/graphql

What is the expected behavior?

apps deployed with no error

What do you see instead?


✖ Deployment failed. For more details, please check the error logs below.

Updating (dev):

 +  pulumi:pulumi:Stack api-dev creating (0s)
@ updating.......
 +  pulumi:pulumi:Stack api-dev creating (3s) error: Running program '/home/user/workspaces/webiny/.webiny/workspaces/apps/api/pulumi/' failed with an unhandled exception:
 +  pulumi:pulumi:Stack api-dev **creating failed (3s)** 1 error
Diagnostics:
  pulumi:pulumi:Stack (api-dev):
    error: Running program '/home/user/workspaces/webiny/.webiny/workspaces/apps/api/pulumi/' failed with an unhandled exception:
    Error: Layer sharp is not available in ap-southeast-3 region.
        at module.exports.getLayerArn (/home/user/workspaces/webiny/node_modules/@webiny/aws-layers/index.js:20:15)
        at PulumiAppModuleDefinition.run (/home/user/workspaces/webiny/node_modules/@webiny/pulumi-aws/apps/api/ApiFileManager.ts:63:37)
        at Object.addModule (/home/user/workspaces/webiny/node_modules/@webiny/pulumi/createPulumiApp.ts:192:42)
        at Object.program (/home/user/workspaces/webiny/node_modules/@webiny/pulumi-aws/apps/api/createApiPulumiApp.ts:202:37)
        at program (/home/user/workspaces/webiny/node_modules/@webiny/pulumi/createPulumiApp.ts:93:48)
        at decorator (/home/user/workspaces/webiny/node_modules/@webiny/pulumi-aws/utils/lambdaEnvVariables.ts:69:34)
        at program (/home/user/workspaces/webiny/node_modules/@webiny/pulumi/createPulumiApp.ts:91:35)
        at decorator (/home/user/workspaces/webiny/node_modules/@webiny/pulumi-aws/utils/withServiceManifest.ts:45:30)
        at programOutput (/home/user/workspaces/webiny/node_modules/@webiny/pulumi/createPulumiApp.ts:91:35)
        at Object.run (/home/user/workspaces/webiny/node_modules/@webiny/pulumi/createPulumiApp.ts:96:48)

Resources:
    + 1 created

Duration: 5s

Additional information

No response

Possible solution

No response

ridhozhr10 avatar Sep 04 '24 04:09 ridhozhr10