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)"
Metadata
Release files for aws2-wrap2 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws2-wrap2-2.0.1.tar.gz | 4.1 kB | Without provenance | Details for aws2-wrap2-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws2_wrap2-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for aws2_wrap2-2.0.1-py3-none-any.whl |
Total release size: 20.7 kB
Release files / aws2-wrap2-2.0.1.tar.gz
| Download URL | aws2-wrap2-2.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eff67137aef291ea30bfa57cc412eb21a8412de5e44777b5d68713c0e5e7b9a4
|
|
BLAKE2b-256 checksum How to use checksums |
cc7bc600a23fe96a51d4548ef0fac64fc7b77529d61368dc32cbf1406475806a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / aws2_wrap2-2.0.1-py3-none-any.whl
| Download URL | aws2_wrap2-2.0.1-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a60ec475e31be5fd84f956f7dfe4439f06d1d4907e211f6925571e19bcf8ff5
|
|
BLAKE2b-256 checksum How to use checksums |
0cc515d023400a928b4dec1f9b8e173f33dc72dc96dc768dea57599e3b6befc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for aws2-wrap2 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.