Use Manage-AWSProfile
to set your current default aws config profile, unset the current default profile, show the current default profile, and list all available profiles.
- Clone this repository.
- Note the path Manage-AWSProfile.ps1
- Add the following to your powershell profile (the profile can be found by entering
$PROFILE
into your powershell prompt).
. "<the path you noted in step 2>"
Note: the "." in the preceding line is not a typo, it must be included
To select the default profile from a list of available profiles use do not pass any flags:
Manage-AWSProfile
Please choose profile:
1: profile-1
2: profile-2
3: profile-3
4: profile-4
Press a number to select a profile: 1
AWS profile set to:
profile-1
If you know the profile you wish to use you can pass it explicitly
Manage-AWSProfile -P <profile-name>
Manage-AWSProfile <profile-name>
Manage-AWSProfile -Profile <profile-name>
To unset the current default profile:
Manage-AWSProfile -U
Manage-AWSProfile -Unset
To list the available profiles:
Manage-AWSProfile -L
Manage-AWSProfile -List
To show the current default profile:
Manage-AWSProfile -C
Manage-AWSProfile -Current