Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(layers): retrieve layer using ARN #1684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivansamartino
Copy link

Description

With this change the layerArn parameter is parsed to identify whether it points to the latest version of the layer or specific version and downloads it using the API method GetLayerVersionByArnCommand which does not require a separate input parameter to specify the layer version

Motivation and Context

The aws-sdk method GetLayerVersionCommand was not passing the VersionNumber input parameter, therefore, downloading layers was not working properly.

Some people were reporting issues with the download of layers like in #1263

How Has This Been Tested?

The feature has been tested using the following repository: serverless poc

The aws-sdk method `GetLayerVersionCommand` was not passing the
`VersionNumber` input parameter, therefore, downloading layers was not
working properly.

With this change the `layerArn` parameter is parsed to identify whether
it points to the `latest` version of the layer or specific version and
downloads it using the API method `GetLayerVersionByArnCommand` which
does not require a separate input parameter to specify the layer version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant