lambda-action
lambda-action copied to clipboard
Syntax for list of layers
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!
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.
See the Pattern: arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+