dherault / dherault/serverless-offline

Layer download issue

Open
#1,263 4 comments 7 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
811
Avg merge
2d 4h
Merged PRs (30d)
3

Description

Working with Layers in AWS encountered an issue trying to execute the lambda in local environment. It appears the ARN is not being passed correctly when it tries to download and create a folder. But it works correctly when it gets deployed to AWS instances.

Tracking down the issue it seems that the **DockerContainer.js** file in the method **_downloadLayer** receives an inccorrect parameter.

Stacktrace:
offline: Found layers, checking provider type
offline: Found layers, checking provider type
offline: Storing layers at /home/walter.fernandez/code/distribution-serverless-product/.serverless-offline/layers/1d519f58f635a45ca77575ee4b8ed4c9fe588b7bbf0710187972f8f3fe6e16d0
offline: Getting layers
offline: Failure: layerArn.split is not a function
TypeError: layerArn.split is not a function

Version: Serverless-offline 7.0.0

Please can anyone help me solve this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.