sharp-heic-lambda-layer icon indicating copy to clipboard operation
sharp-heic-lambda-layer copied to clipboard

During AWS CodeBuild: Error: Unable to upload artifact SharpHEICLayer

Open tlmader opened this issue 2 years ago • 0 comments

Hello,

I am attempting to build the layer via AWS CodeBuild, but getting the error below:

[Container] 2023/11/09 17:25:12.344972 Running command npm run deploy
2339 |  
2340 | > [email protected] predeploy
2341 | > npm run package
2342 |  
2343 |  
2344 | > [email protected] prepackage
2345 | > node deployment/createSAMConfiguration.js > samconfig.toml
2346 |  
2347 |  
2348 | > [email protected] package
2349 | > sam package
2350 |  
2351 | Error: Unable to upload artifact SharpHEICLayer referenced by ContentUri parameter of SharpHEICLayer resource.
2352 | An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied
2353 |  
2354 | [Container] 2023/11/09 17:25:18.485652 Command did not exit successfully npm run deploy exit status 1
2355 | [Container] 2023/11/09 17:25:18.490597 Phase complete: POST_BUILD State: FAILED
2356 | [Container] 2023/11/09 17:25:18.490614 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npm run deploy. Reason: exit status 1
2357 | [Container] 2023/11/09 17:25:18.582919 Phase complete: UPLOAD_ARTIFACTS State: SUCCEEDED
2358 | [Container] 2023/11/09 17:25:18.582940 Phase context status code:  Message:
2359

Here are my environment settings:

CleanShot 2023-11-09 at 12 09 34@2x

Environment variables:

CleanShot 2023-11-09 at 12 48 42@2x

tlmader avatar Nov 09 '23 18:11 tlmader