Skip to content

Commit

Permalink
Use env vars when profile or aws secret/access key is not specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Krzykowski committed Mar 29, 2019
1 parent 6b0010f commit 0340e77
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/cli/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@ const verifyOptions = async () => {
mode = modeChoice.selected.toLowerCase();
}

// choose your profile from available AWS profiles if not passed through CLI
// only shown in case when no valid profile or no key && secret is passed.
if (!savedAWSProfiles.includes(profile) && (!key || !secret)) {
const awsProfileChoice = await inquirer.prompt({
type: 'autocomplete',
name: 'selected',
message: 'Choose your AWS Profile',
source: searchAWSProfile,
} as inquirer.Question);

profile = awsProfileChoice.selected;
};

// choose your region if not passed through CLI
if (!region) {
const awsRegionChoice = await inquirer.prompt({
Expand Down

0 comments on commit 0340e77

Please sign in to comment.