Skip to content

Updates to terraform #124

Updates to terraform

Updates to terraform #124

name: Lambda Trigger DEV CICD Deployment
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Zip functions
run: |
cd lambda_functions
zip -r boardgame_scraper_fargate_trigger.zip boardgame_scraper_fargate_trigger.py ../config.py ../utils
zip -r boardgame_cleaner_fargate_trigger.zip boardgame_cleaner_fargate_trigger.py ../config.py ../utils
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_GITHUB_ROLE }}
aws-region: ${{ secrets.AWS_REGION }}
- run: |
cd lambda_functions
aws lambda update-function-code --function-name=boardgame_scraper_fargate_trigger_dev --zip-file=fileb://boardgame_scraper_fargate_trigger.zip > /dev/null 2>&1
aws lambda update-function-code --function-name=boardgamegeek_cleaner_fargate_trigger_dev --zip-file=fileb://boardgame_cleaner_fargate_trigger.zip > /dev/null 2>&1