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

feature request: specify layers in update-function-configuration

ryanhuff opened this issue · comments

I would love to be able to specify layers:

      - name: deploy function
        uses: appleboy/lambda-action@master
        with:
          aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws_region: my-region
          function_name: my-function-arn
          zip_file: function-code.zip
          layers: layer1-version-arn,layer2-version-arn,layer3-version-arn

I will take it asap.

providing layers as an array would be even better than a comma-separated list... :)

@ryanhuff GitHub Actions doesn't support the array in YAML now. See the reference: https://github.community/t/can-action-inputs-be-arrays/16457

Comma-separated would be fine too.

Hi! Thanks for your effort, it helps a lot.

Do you have any updates on layers? Are you still planning to implement them?

Hi @appleboy. Same question ☝️
Appreciate it!

Layers aren't actually working in any version. Version 0.1.4 is broken (#36 #38). And version 0.1.5 is using a drone-lambda that doesnt support layers.

@bakkerthehacker Yes. I will try it again.