Skip to main content

A program to create deterministic zip files.

Project description

aws_longer

aws_longer is a tool to replace assume-role with a few significant benefits:

  1. MFA tokens need only be entered once every 36 hours.
  2. Sessions can be shared across terminals, and persist across reboots.

Both of the above are accomplished by storing the session credentials, and assumed credentials in the user's keychain.

Installation

Install this package via:

pip install aws_longer

Assuming a Role

aws_longer role ROLENAME AWS_ACCOUNT

The above will open a new shell setting the appropriate AWS_ environment variables. If this is the first time you are running this command, or it has been 36 hours since you last input your MFA token, then you will be prompted to input your MFA token.

AWS_ACCOUNT can either be an AWS account ID, or an alias to an AWS account ID.

If you'd like to prevent opening a new shell, you can instead run, but be careful because if there are any errors, the result will terminate your shell-program:

exec aws_longer role ROLENAME AWS_ACCOUNT

Using the Temporary Session

Rather than assuming a specific role, one can directly utilize the 36-hour temporary session via:

aws_longer

Using this temporary session is beneficial if, for example, you require MFA to assume roles, and you'd like to be able to run terraform apply with a provider that assumes a specific role.

AWS Account ID Alias

AWS account ID aliases can be defined in ~/.aws/accounts, which is a JSON file of the following format:

{
  "default": "123456789012",
  "staging": "123456789012",
  "production": "123456789012"
}

This aliasing format is the same as was used in assume-role in order to ease transitioning.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_longer-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

aws_longer-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file aws_longer-0.1.1.tar.gz.

File metadata

  • Download URL: aws_longer-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for aws_longer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80792e04a215ef697b592dc03c8658ba5d6868573dd218dd03b601d37002a0ee
MD5 26e4b50a58740b71610c9134f9463524
BLAKE2b-256 8462c5baef3744131cb40dc9e329a6a6f157d48eb77841dcd9e7bc11053e8562

See more details on using hashes here.

Provenance

File details

Details for the file aws_longer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aws_longer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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/41.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for aws_longer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74af064767adc422084e1934007b64b94e486381f22365f7a50bd3cc366b52ff
MD5 a7a1ed3856e6a8f32483adb097420a89
BLAKE2b-256 e422e3739ffabb1bc37cabd9229b8f33fd2f339426d82e234f7c06f98156224b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page