https://github.com/gmariano/SetAwsCredentials
Script to quickly set your AWS credentials
https://github.com/gmariano/SetAwsCredentials
Last synced: 4 months ago
JSON representation
Script to quickly set your AWS credentials
- Host: GitHub
- URL: https://github.com/gmariano/SetAwsCredentials
- Owner: gmariano
- Created: 2022-08-24T09:36:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T14:29:49.000Z (10 months ago)
- Last Synced: 2024-08-13T07:05:58.210Z (8 months ago)
- Language: PowerShell
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - gmariano/SetAwsCredentials - Script to quickly set your AWS credentials (PowerShell)
README
# SetAwsCredentials
Script to quickly set your AWS credentials## Requirements:
* Windows
* Powershell
* AWS CLI## Settings:
* Add your profiiles to *C:\Users\\[YourUserName]\\.aws\config* in the following format:
```
[profile profile1]
sso_start_url = https://........./start#/
sso_region = login region (e.g. us-east-1)
sso_account_id = xxxxxxxxx
sso_role_name = xxxxxxxxx
region = region (e.g. eu-west-1)
output = json[profile profile2]
sso_start_url = https://........./start#/
sso_region = login region (e.g. us-east-1)
sso_account_id = xxxxxxxxx
sso_role_name = xxxxxxxxx
region = region (e.g. eu-west-1)
output = json
```## Usage:
run ```.\SetAwsCredentials.ps1``` and select the profile from the menu.
The script will save your credentials in *C:\Users\\[YourUserName]\\.aws\credentials*