Skip to main content

This package is used to get temporary token for aws access

Project description

Module overview

This module integrates with DUO MFA to get temporary access for aws ##Installation and execution To install this package, please run the below command on your console.

pip install aws-access

This will install the package along with all its dependencies. Once installed, execute the package using the below command

python -m aws_access_util.get_aws_access --awsurl <url> --u <user> --dur <duration> --p <password> --prf <profile> --r <role_arn>

url: This is the url of the AWS account
user: The userid to connect to the URL
password: The password to connect to the URL
dur: The duration in seconds for which access is required. Deafult is 1 hour
prf:AWS profile. Default is saml
r:Role ARN to assume the role if account is mapped with multiple roles.If it is not provided, then program will print the list of roles to choose if it is mapped with multiple roles

If none of the parameters are given, the utility will prompt for the value of the parameters except for duration(--dur),profile(--prf) and role_arn(--r). It will take default duration of 1 hour for dur and saml for profile

##Help information

To find out how to use the utility, you can execute the below command

python -m aws_access_util.get_aws_access --help

usage: get_aws_access.py [-h] [--awsurl URL] [--u USER] [--p PASSWORD]
                         [--dur DURATION_SECONDS] [--prf PROFILE] [--r ROLE_ARN]

Retrieves and stores a temporary token which is used to access AWS resource

optional arguments:
  -h, --help            show this help message and exit
  --awsurl URL          Specify a valid aws url
  --u USER              Specify your userid
  --p PASSWORD          Specify your password
  --dur DURATION_SECONDS
                        Specify duration in seconds for which you need
                        access.Must be > 900 and less than 43200. Default is 1
                        hour or 3600 secs.
  --prf profile			Specify profile name for aws credentials config, default will be saml
  --r role_arn			Specify Role ARN to select the specific role if it is mapped with multiple roles

##Authors

  • Rajib Deb - Initial Work - Cisco
  • Mounika Gorintla - Cisco

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-access-1.1.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

aws_access-1.1.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file aws-access-1.1.2.tar.gz.

File metadata

  • Download URL: aws-access-1.1.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for aws-access-1.1.2.tar.gz
Algorithm Hash digest
SHA256 1cf18382a7276350308e73efd8835cfdf86b1a3d6cf561efef66f2e1bc488b5e
MD5 e5b6a29932cc11f11b96639ca0c4c1fa
BLAKE2b-256 aadb4b2ff9ec07216d753f670d5df1ee6ccd26d7fbfc0777e3291364011d1362

See more details on using hashes here.

File details

Details for the file aws_access-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: aws_access-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for aws_access-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fcdc8e3b100d265d03d560e1334a5af5b8c0fd7809eea1225d5aee8f45039bc
MD5 5f5bcb56ac4e67fca9bfc023a0d190a7
BLAKE2b-256 44bd7fffded07dcccd4a263d3e5a70d15e56ba23402f868f825b0ec5baf07592

See more details on using hashes here.

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