numo-labs / aws-lambda-helper

:lollipop: Collection of helper methods for lambda
GNU General Public License v3.0
22 stars 2 forks source link

Is this a valid ARN? #5

Closed nelsonic closed 8 years ago

nelsonic commented 8 years ago

Hi @s-voloshynenko the test has an invokedFunctionArn: 'arn:123:abs:prod' see: https://github.com/tcdl/aws-lambda-helper/blob/869eeb2d42c4d09179a6f2da4b739c3fae49d8c8/test/lib/index.js#L50

I searched through the list of ARNs but was not able to find if an ARN with 4 segments is valid ... http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-lambda

If not, we may need to update the test context...

s-voloshynenko commented 8 years ago

Hi @nelsonic. It was assumed that helper will parse the last segment word. Here was not paid attention for segments amount. For the next version update we will fix it.

nelsonic commented 8 years ago

Sounds good. :+1: