Switch AWS profile on local
Project description
Switch AWS Profile on local
| GitHub Actions | Pypi |
|---|---|
Choose one AWS profile to set default when you have multiple AWS profile.
Typically, the location of credential file is ~/.aws/credentials
Platform support
- macOS (test ok)
- Linux (ready for test)
Feature
- Switch AWS profile for setting default
- Assume role for getting credential base on choosing AWS profile
prerequisites
- Python3
- jq
Credential file examples
No Assume role
[test1]
aws_access_key_id = AKI11111111111111111
aws_secret_access_key = aaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbb
[test2]
aws_access_key_id = AKI22222222222222222
aws_secret_access_key = cccccccccccccccccccccccdddddddddddddddddd
Assume role
[test1]
aws_access_key_id = AKI11111111111111111
aws_secret_access_key = aaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbb
custom_assume_role = ci-assume-role1
duration_seconds = 3600
[test2]
aws_access_key_id = AKI22222222222222222
aws_secret_access_key = cccccccccccccccccccccccdddddddddddddddddd
custom_assume_role = ci-assume-role2
duration_seconds = 3600
If custom_assume_role is specified, the question as Input your role name to assume role can be pressed enter to pass it directly.
duration_seconds setting same as the custom_assume_role.
Installation
pip3 install switch-aws-profile
After installation, use awssp command directly
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file switch_aws_profile-0.0.6-py3-none-any.whl.
File metadata
- Download URL: switch_aws_profile-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ccac299b613e2562e54a4b8c7f06239aec720bf296ae695fe0cbb36c0787d20
|
|
| MD5 |
fcc2209879ca6e1fd1341494f80767a4
|
|
| BLAKE2b-256 |
3cd1a80dd5f7451af4a318c08c460ace235c900cf9ee8acdb5e1b628dbad36a8
|