Skip to content

Commit f71f955

Browse files
committed
chore: test run
Signed-off-by: Kevin Shan <[email protected]>
1 parent f1eba48 commit f71f955

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/amplify-codegen-e2e-core/src/init/initProjectHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function initJSProjectWithProfile(cwd: string, settings: Object = {}): Pr
7575
.wait('Select the authentication method you want to use:')
7676
.sendCarriageReturn()
7777
.wait('Please choose the profile you want to use')
78-
.sendLine(s.profileName);
78+
.sendLine('amplify-integ-test-user');
7979
}
8080

8181
chain

shared-scripts.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ function useChildAccountCredentials {
365365
echo "Unable to find a child account. Fatal error and test run aborted"
366366
exit 1
367367
fi
368+
369+
export AWS_REGION=$CLI_REGION
370+
export AWS_DEFAULT_REGION=$CLI_REGION
371+
368372
creds=$(aws sts assume-role --role-arn arn:aws:iam::${pick_acct}:role/OrganizationAccountAccessRole --role-session-name testSession${session_id} --duration-seconds 3600)
369373
if [ -z $(echo $creds | jq -c -r '.AssumedRoleUser.Arn') ]; then
370374
echo "Unable to assume child account role. Fatal error and test run aborted"
@@ -380,9 +384,6 @@ function useChildAccountCredentials {
380384
echo "Using parent account credentials."
381385
fi
382386
echo "Region is set to use $CLI_REGION"
383-
384-
export AWS_REGION=$CLI_REGION
385-
export AWS_DEFAULT_REGION=$CLI_REGION
386387
}
387388

388389
function retry {

0 commit comments

Comments
 (0)