BCDA-8629: Remove unnecessary database logic #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Admin Create ACO dev deploy | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: | |
- austin/BCDA-8629-create-aco-wf | |
paths: | |
- bcda/lambda/admin_create_aco/** | |
- .github/workflows/admin-create-aco-dev-deploy.yml | |
jobs: | |
test: | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: bcda | |
environment: dev | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
- name: Build admin_create_aco zip file | |
env: | |
CGO_ENABLED: 0 | |
run: | | |
pwd | |
go build -o bin/bootstrap ./lambda/admin_create_aco/*.go | |
zip -j function.zip bin/bootstrap | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.AWS_REGION }} | |
role-to-assume: arn:aws:iam::${{ secrets.ACCOUNT_ID }}:role/delegatedadmin/developer/bcda-dev-github-actions | |
- name: Upload and reload | |
run: | | |
aws s3 cp --no-progress function.zip \ | |
s3://bcda-dev-admin-aco-deny-function/function-${{ github.sha }}.zip | |
aws lambda update-function-code --function-name bcda-dev-admin-create-aco \ | |
--s3-bucket bcda-dev-admin-create-aco-function --s3-key function-${{ github.sha }}.zip |