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

aws2-wrap-1.0.1.tar.gz (3.7 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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws2-wrap-1.0.1.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.9

File hashes

Hashes for aws2-wrap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 06a5fdb0dd1bbed40b7d969444b9031b7cb89c39139a14bda751619167905a9c
MD5 e51f42959027e34d5382b00df0516d94
BLAKE2b-256 a69594a3bf16ecd017991d0375e148441ba2cb9e6159c6c03b7f6b99eee034b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws2_wrap-1.0.1-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.9

File hashes

Hashes for aws2_wrap-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1484155e9d028f63f5721e283457a43457fbdfe2e11c8a9bce936e652ac8e112
MD5 b31704b93d5b6d3d6dd433c5ecfdf0ad
BLAKE2b-256 1903d0ce66869e86aeaa05238d46e2601e095f5cd47087810aafce82ffe3b035

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.11

2 files

1.1.10

2 files

1.1.9

2 files

1.1.8

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

1 file

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page