Skip to content

Layer won't deploy: "Layer conversion failed" error #2344

@dan-mba

Description

@dan-mba

Description

Deploying my application fails on layer creation with a file permission error.
I tried to chmod -R 755 the layer build directory in git bash, but it had no effect.

Steps to reproduce

  1. clone my repo
  2. sam build --use-container
  3. sam deploy --guided

Observed result

CREATE_FAILED
AWS::Lambda::LayerVersion
OpencvLayer641c5be385
Layer conversion failed: Some files do not have read permissions;
(Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException;
Request ID: b212fad5-ef52-4386-b1de-d391533f9c68)

Expected result

Deployment to complete

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Windows 8.1
  2. sam --version: SAM CLI, version 1.7.0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions