Skip to content

Commit

Permalink
layer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravds committed Jul 30, 2024
1 parent 874fcec commit 75ba2ab
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/layer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
deploy_layer:
runs-on: ubuntu-latest
outputs:
layerVersion: ${{ steps.create_layer.outputs.layerVersion }}
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -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 }}

0 comments on commit 75ba2ab

Please sign in to comment.