A wrapper for executing a command with AWS CLI v2 and SSO
Project description
Attention!
This package is fork of linaro-its/aws2-wrap: Simple script to export current AWS SSO credentials or run a sub-process with them. If Improve argument handling by bigwheel · Pull Request #13 · linaro-its/aws2-wrap is merged, this package will be disposed.
aws2-wrap2
This is a simple script to facilitate exporting the current AWS SSO credentials or runing a command with them. Please note that it is called aws2-wrap2 to show that it works with AWS CLI v2, even though the CLI tool is no longer called aws2.
Install using pip
https://pypi.org/project/aws2-wrap2
pip install aws2-wrap2==2.0.1
Run a command using AWS SSO credentials
aws2-wrap2 [--profile <awsprofilename>] <command>
For example:
aws2-wrap2 --profile MySSOProfile terraform plan
Export the credentials
There may be circumstances when it is easier/better to set the appropriate environment variables so that they can be re-used by any aws command.
Since the script cannot directly set the environment variables in the calling shell process, it is necessary to use the following syntax:
eval "$(aws2-wrap2 [--profile <awsprofilename>] --export)"
For example:
eval "$(aws2-wrap2 --profile MySSOProfile --export)"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 aws2-wrap2-2.0.1.tar.gz.
File metadata
- Download URL: aws2-wrap2-2.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eff67137aef291ea30bfa57cc412eb21a8412de5e44777b5d68713c0e5e7b9a4
|
|
| MD5 |
263832965d7e3523343b7a96575c6b67
|
|
| BLAKE2b-256 |
cc7bc600a23fe96a51d4548ef0fac64fc7b77529d61368dc32cbf1406475806a
|
File details
Details for the file aws2_wrap2-2.0.1-py3-none-any.whl.
File metadata
- Download URL: aws2_wrap2-2.0.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a60ec475e31be5fd84f956f7dfe4439f06d1d4907e211f6925571e19bcf8ff5
|
|
| MD5 |
49cc86a6c1d75e09dba4792452139b43
|
|
| BLAKE2b-256 |
0cc515d023400a928b4dec1f9b8e173f33dc72dc96dc768dea57599e3b6befc1
|