Skip to content

Commit

Permalink
Integrated AWS secrets with the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Danuk-Udagama committed Feb 21, 2024
1 parent 0a3ad63 commit 24e847c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,24 @@ jobs:
with:
python-version: '3.11'

- name: Install npm dependencies
- name: Install dependencies
run: |
sudo apt-get install jq
npm install -g serverless
npm install
- name: Install python dependencies
run: |
python -m pip install -r requirements/dev.txt
- name: Authenticate AWS
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.ROLE_OIDC }}

- name: Retrieve AWS secrets
run: |
aws secretsmanager get-secret-value --secret-id ${{ secrets.AWS_SECRET_ARN }} | jq -r ".SecretString" >> dev.env
- name: Retrieve github secrets and set to environment
uses: aws-actions/aws-secretsmanager-get-secrets@v2.0.1
with:
secret-ids: |
${{ secrets.AWS_SECRET_ARN }}



0 comments on commit 24e847c

Please sign in to comment.