appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function

Home Page:https://github.com/marketplace/actions/aws-lambda-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax for list of layers

jackgle opened this issue · comments

commented

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]+