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
Closing because this PR has been open for too long. Sorry it was not merged, please publish a newer PR if you still want this behavior in the codebase.
Description
With this change the
layerArn
parameter is parsed to identify whether it points to thelatest
version of the layer or specific version and downloads it using the API methodGetLayerVersionByArnCommand
which does not require a separate input parameter to specify the layer versionMotivation and Context
The aws-sdk method
GetLayerVersionCommand
was not passing theVersionNumber
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