Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

A tool for logging into aws with ad credentials

Project description

# 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

  1. Create config file: ~/.aws/auth. It will be used by aws-ad to connect to ADFS site and to login. Here is sample content:

    [profile-name] # password=your-password - this is OPTIONAL provider-id=urn:amazon:your-company-provider-id role-arn=arn:aws:iam::1234567890:role/ADFS_ROLE_FOR_TASK

    # 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

  2. Run aws-ad with 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 in Active Directory). aws-ad modifies file ~/.aws/credentials. It saves AWS keys there in profile section (profile-name again).

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

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
aws_ad-0.6.2-py3-none-any.whl (9.5 kB) Copy SHA256 hash SHA256 Wheel py3
aws-ad-0.6.2.tar.gz (7.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page