Skip to main content

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=linaro-its_aws2-wrap&metric=alert_status)](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.

## Install using pip

https://pypi.org/project/aws2-wrap

pip install aws2-wrap==1.0.0

## 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

aws2-wrap-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws2_wrap-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file aws2-wrap-1.0.2.tar.gz.

File metadata

  • Download URL: aws2-wrap-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 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.9

File hashes

Hashes for aws2-wrap-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7e7623fcec57466d0a538901c1a140dc38c514ae05905b6b13ef7e1796ed51c8
MD5 29c27e0244945a785490d4c80f12e741
BLAKE2b-256 aaa975b60dfd600e119617fed148e269ce0957c6fdd16bf1ce2fd7c5e328c40f

See more details on using hashes here.

File details

Details for the file aws2_wrap-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: aws2_wrap-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.9

File hashes

Hashes for aws2_wrap-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16613df5baca70032365a62cbd4615107c731c2299f09418d76b14949d425a98
MD5 c7cc06c9c6dcc44775c7e93ed7310a2b
BLAKE2b-256 84f7547da713173a2afe3308e471905a75993fa9095df279a11cd6042376409e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page