Skip to content

Commit

Permalink
fix(tool-stack): avoid autoloading aws credentials if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwremmel committed Feb 13, 2024
1 parent 806c9e8 commit e7674d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@code-like-a-carpenter/tool-stack/src/stacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export async function findEndpoints(
}

async function getStackUrl(stackName: string): Promise<string> {
if (!process.env.CI) {
// If we aleady have an AWS_SECRET_ACCESS_KEY, don't try to to use autoloading
if (!process.env.CI && !process.env.AWS_SECRET_ACCESS_KEY) {
process.env.AWS_REGION = process.env.AWS_REGION ?? 'us-east-1';
process.env.AWS_PROFILE = process.env.AWS_PROFILE ?? 'webstorm_playground';
process.env.AWS_SDK_LOAD_CONFIG = process.env.AWS_SDK_LOAD_CONFIG ?? '1';
Expand Down

0 comments on commit e7674d5

Please sign in to comment.