Skip to content

Commit

Permalink
chore(ai): update script for pulling down envs (#5750)
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddmt authored Sep 10, 2024
1 parent 42e2d5d commit 5f78e89
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflow-samples/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
STORAGE_E2E_ROLE_ARN: ${{ secrets.STORAGE_E2E_ROLE_ARN }}
IN_APP_MESSAGING_E2E_ROLE_ARN: ${{ secrets.IN_APP_MESSAGING_E2E_ROLE_ARN }}
LIVENESS_E2E_ROLE_ARN: ${{ secrets.LIVENESS_E2E_ROLE_ARN }}
AI_E2E_ROLE_ARN: ${{ secrets.AI_E2E_ROLE_ARN }}
DOMAIN: ${{ secrets.DOMAIN }}
PHONE_NUMBER: ${{ secrets.PHONE_NUMBER }}
USERNAME: ${{ secrets.USERNAME }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/reusable-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ on:
required: true
LIVENESS_E2E_ROLE_ARN:
required: true
AI_E2E_ROLE_ARN:
required: true
DOMAIN:
required: true
PHONE_NUMBER:
Expand Down Expand Up @@ -287,6 +289,21 @@ jobs:
- name: Pull down In-app-messaging AWS environments
run: yarn environments in-app-messaging pull

- name: Configure ai credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.AI_E2E_ROLE_ARN }}

- name: Create temp AWS profile
run: |
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID && \
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY && \
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION
- name: Pull down AI AWS environments
run: yarn environments ai pull

- name: Delete AWS profile
run: rm -rf ~/.aws

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-internal-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ jobs:
STORAGE_E2E_ROLE_ARN: ${{ secrets.STORAGE_E2E_ROLE_ARN }}
LIVENESS_E2E_ROLE_ARN: ${{ secrets.LIVENESS_E2E_ROLE_ARN }}
IN_APP_MESSAGING_E2E_ROLE_ARN: ${{ secrets.IN_APP_MESSAGING_E2E_ROLE_ARN }}
AI_E2E_ROLE_ARN: ${{ secrets.AI_E2E_ROLE_ARN }}
DOMAIN: ${{ secrets.DOMAIN }}
PHONE_NUMBER: ${{ secrets.PHONE_NUMBER }}
USERNAME: ${{ secrets.USERNAME }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const amplifyOutputs = {};
import amplifyOutputs from '@environments/ai/gen2/amplify_outputs';
export default amplifyOutputs;

0 comments on commit 5f78e89

Please sign in to comment.