Skip to content

Commit

Permalink
Update aws-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
preetam810 authored Oct 27, 2024
1 parent 0b317fd commit e886bd6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/aws-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,16 @@ jobs:
- name: Download build from build repository
run: |
echo "Downloading build from build repository..."
aws s3 cp s3://vw-demo-730335502100-build-repository/${{ github.event.inputs.build-repository-type }}/${{ github.event.inputs.build-version }} .
- name: Deploy build to AWS Lambda
run: |
echo "Deploying ${{ github.event.inputs.build-version }} to ${{ github.event.inputs.environment }}..."
echo ${{ github.event.inputs.environment }}
echo ${{ github.event.inputs.build-repository-type }}
echo ${{ github.event.inputs.build-version }}
aws s3 cp s3://vw-demo-730335502100-build-repository/${{ github.event.inputs.build-repository-type }}/${{ github.event.inputs.build-version }} .
ls -ltrh
aws lambda update-function-code \
--function-name lambda-s3-dynamodb-${{ github.event.inputs.environment }} \
--zip-file fileb://${{ github.event.inputs.build-version }} \
--region us-west-1

0 comments on commit e886bd6

Please sign in to comment.