From 75ba2abbe0fa15fa19eec62311b4c7b4be653f20 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Tue, 30 Jul 2024 18:44:44 +0530 Subject: [PATCH] layer updates --- .github/workflows/layer.yaml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/layer.yaml b/.github/workflows/layer.yaml index bf447b3..1937fd1 100644 --- a/.github/workflows/layer.yaml +++ b/.github/workflows/layer.yaml @@ -8,8 +8,6 @@ on: jobs: deploy_layer: runs-on: ubuntu-latest - outputs: - layerVersion: ${{ steps.create_layer.outputs.layerVersion }} steps: - uses: actions/checkout@v2 @@ -57,21 +55,9 @@ jobs: --query Version \ --output text) echo "::set-output name=layer_version::$LAYER_VERSION" - echo "layerVersion=layer_version::$LAYER_VERSION" >> "$GITHUB_OUTPUT" - - deploy_lambda: - needs: deploy_layer - runs-on: ubuntu-latest - steps: - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-region: ${{ secrets.AWS_REGION }} - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - name: Update Lambda function with new layer run: | aws lambda update-function-configuration \ --function-name enigma_lambda \ - --layers arn:aws:lambda:${{ secrets.AWS_REGION }}:$(aws sts get-caller-identity --query Account --output text):layer:enigma_layer:${{ needs.deploy_layer.outputs.layerVersion }} + --layers arn:aws:lambda:${{ secrets.AWS_REGION }}:$(aws sts get-caller-identity --query Account --output text):layer:enigma_layer:${{ steps.create_layer.outputs.layer_version }}