Skip to content

eyammer/Manage-AWSProfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Manage-AWSProfile

Description

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.

Installation

  1. Clone this repository.
  2. Note the path Manage-AWSProfile.ps1
  3. 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

Usage

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

About

Powershell function that helps you manage the default AWS Config profile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •