Skip to content

Commit

Permalink
configure ${{ vars.AWS_ROLE_TO_ASSUME }} as an environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
yardenasadosa committed Apr 7, 2024
1 parent 799a8dc commit 255bedd
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,24 @@ jobs:
sudo apt-get install -y gettext

- name: Configure AWS Credentials
if: ${{ inputs.environment == 'staging' }}
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME_STAGING }}
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ vars.AWS_REGION }}

- name: Configure AWS Credentials
if: ${{ inputs.environment == 'production' }}
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME_PRODUCTION }}
aws-region: ${{ vars.AWS_REGION }}
# - name: Configure AWS Credentials
# if: ${{ inputs.environment == 'staging' }}
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME_STAGING }}
# aws-region: ${{ vars.AWS_REGION }}
#
# - name: Configure AWS Credentials
# if: ${{ inputs.environment == 'production' }}
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME_PRODUCTION }}
# aws-region: ${{ vars.AWS_REGION }}

#this is the private key for ci user, used by jenkins slave, can be found in ssm parameter staging jenkins slave. that allows ssh to airflow.
- name: install the ci private key
Expand Down

0 comments on commit 255bedd

Please sign in to comment.