[](https://sonarcloud.io/dashboard?id=linaro-its_aws2-wrap)
# aws2-wrap This is a simple script to facilitate exporting the current AWS SSO credentials or runing a command with them. It is installed with pip.
## Run a command using AWS SSO credentials
aws2-wrap –profile <awsprofilename> –exec “<command>”
Note that you must enclose the command to be executed within double-quotes in order to ensure that any parameters are passed to that sub-command and not to aws2-wrap.
For example:
aws2-wrap –profile MySSOProfile –exec “terraform”
## 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-wrap –profile <awsprofilename –export)”
For example:
eval “$(aws2-wrap –profile MySSOProfile –export)”
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-wrap-1.0.0.tar.gz.
File metadata
- Download URL: aws2-wrap-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
645f4fa7af753560013f810a8cf407f9e863f7a0ff9107d68079add4d194bea8
|
|
| MD5 |
8acc57f813e3369bb6553e57d0dec849
|
|
| BLAKE2b-256 |
adf5539ac632e43b191cca21dbd3ef0c14eaa52c916b0a58468ecd6ba54a67b9
|
File details
Details for the file aws2_wrap-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aws2_wrap-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f49fa6e03543ef59ce0a5d69ee352e33631d53cf9c1fad4b2588abe2e8dbd533
|
|
| MD5 |
25aa442cceed4a313b3d3bdb736745c2
|
|
| BLAKE2b-256 |
0bd86dad5c6c9c3c0a2c586de0a1dab50f5092b6bf4f781deea8737b4673003c
|