Skip to content

Commit

Permalink
Update lambda function layer version
Browse files Browse the repository at this point in the history
  • Loading branch information
sansmoraxz committed May 30, 2023
1 parent 4866132 commit 2e2f389
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/layerpipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ jobs:
--description "Layer for ${{ github.event.repository.name }}"
--content "S3Bucket=${{ secrets.AWS_BUCKET }},S3Key=${{ github.event.repository.name }}-${{ github.sha }}.zip"
--compatible-runtimes "python3.10"
--compatible-architectures "x86_64"
--compatible-architectures "x86_64" > layer.json

- name: Update lambda function to match published layer
env:
FUNCTION_NAME: ${{ secrets.FUNCTION_NAME }}
run: aws lambda update-function-configuration
--function-name "${FUNCTION_NAME}"
--layers "$(jq -r '.LayerVersionArn' layer.json)"

0 comments on commit 2e2f389

Please sign in to comment.