mooyoul / serverless-latest-layer-version

A serverless plugin that replaces 'latest' version tag to actual lambda layer version
MIT License
25 stars 9 forks source link

Conflict when used together with the "serverless-pseudo-parameters" plugin. #2

Closed danielpereirabp closed 4 years ago

danielpereirabp commented 5 years ago

Ex.:

layers:

Function "processLayerARNList":

const arnParts = arn.split (':'); const layerRegion = arnParts [3]; const layerVersion = arnParts [7];

arnParts: [ 'arn', 'aws', 'lambda', '#{AWS', '', 'Region}', '#{AWS', '', 'AccountId}', 'layer', 'MyLayerName', 'latest' ]

arnParts [3]: '#{AWS' arnParts [7]: ''

andrepintorj commented 5 years ago

There is a PR addressing this issue already created but still not merged by maintainer: https://github.com/mooyoul/serverless-latest-layer-version/pull/4

mooyoul commented 4 years ago

Hello there, This issue has been fixed from v2.0.0. Now this plugin resolves pseudo parameters in layer ARN. Would you try again with v2.0.0 release? Thanks!