aws-ad
This project provides command line tool - aws-ad to simplify process of logging into AWS account with Windows AD credentials
It is inspired by basically identical tool aws-adfs. I wrote it mainly out of curioucity how to do it by myself, and was to lazy to check, why orginal tool randomly refused to work under bamboo
Sample workflow
-
Create config file:
~/.aws/auth. It will be used byaws-adto connect to ADFS site and to login. Here is sample content:[profile-name] username=login@your-domain.com # password=your-password - this is OPTIONAL adfs-host=sts.your-domain.com provider-id=urn:amazon:your-company-provider-id role-arn=arn:aws:iam::1234567890:role/ADFS_ROLE_FOR_TASK # session duration can be increased to 24 hours (720 minutes) session-duration-minutes=60 # OPTIONAL variables that change behaviour of profile : # assume-role=arn:aws:iam::1234567890:role/role-to-assume-into-after-gettin-in # assume-profile=name-of-the-new-profile -
Run
aws-adwith following options:aws-ad --profile profile-name
Keep in mind that profile-name must be the same as in config file above
You may be prompted for password (to your login@your-domain.com in Active Directory).
aws-ad modifies file ~/.aws/credentials. It saves AWS keys there in profile section (profile-name again).
-
You can now run AWS CLI commands now. Remember to set AWS Region and AWS Profile, like this:
export AWS_DEFAULT_PROFILE=profile-name export AWS_DEFAULT_REGION=eu-central-1 aws s3 ls
Metadata
Release files for aws-ad 0.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws-ad-0.6.5.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_ad-0.6.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 15.9 kB
Release files / aws-ad-0.6.5.tar.gz
| Download URL | aws-ad-0.6.5.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1d62d779d4ba225b901f383fbfbd7edce262c86acee6c1150c83ca645be93e4
|
|
BLAKE2b-256 checksum How to use checksums |
b3085687d1e7230632cb386fcafbab8658bb70a211db7c71d31d34927fdd6126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.15
|
Release files / aws_ad-0.6.5-py2-none-any.whl
| Download URL | aws_ad-0.6.5-py2-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
adee24d2907d8227ad0d758188bbbf0faee19b8f2dbac6998f473a54a117796d
|
|
BLAKE2b-256 checksum How to use checksums |
e8acad7577e32f6b4933ad5cb7efdb6cf8548473d77b6054724e8cd27c3b075f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.15
|