lambda-action icon indicating copy to clipboard operation
lambda-action copied to clipboard

Syntax for list of layers

Open jackgle opened this issue 4 years ago • 1 comments

Hello, I'm trying to add layers to the lambda configuration, but when I use this syntax:

- uses: appleboy/lambda-action@master
  with:
        aws_access_key_id: ...
        ...
        layers: ['arn_1:version', 'arn_2:version']

I receive the error A sequence was not expected at the layers line. What is the correct syntax for a list of layers?

Thanks!

jackgle avatar Aug 23 '21 15:08 jackgle

Hej @jackgle, I had the same syntax issue, and it turns out it should be similar to environment. I'll also open a PR to add an example about the multi-layers syntax.

benbenbang avatar Oct 03 '21 06:10 benbenbang

See the Pattern: arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+

appleboy avatar Apr 02 '23 01:04 appleboy