appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function
https://github.com/marketplace/actions/aws-lambda-deploy
MIT License
394 stars 58 forks source link

Syntax for list of layers #39

Closed jackgle closed 1 year ago

jackgle commented 3 years ago

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!

benbenbang commented 3 years ago

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.

appleboy commented 1 year ago

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