Skip to main content

A tool to automate AWS SSO login

Project description

A CLI tool to automate AWS SSO login. It uses selenium with chrome under the hood.

1. Install with pipx

pipx install fck-aws-sso

2. Run first time with --no-headless

You need that to save your browser user data. BROWSER=true is hack so aws sso won't open browser. Browser will be opened by fck-aws-sso.

BROWSER=true aws sso login | fck-aws-sso --no-headless

3. Add to .bashrc or .zshrc

BROWSER=true aws sso login | fck-aws-sso

4. Forget that you ever had to login to AWS SSO manually.

How it works

Script reads aws sso login output from stdin and parses it. Then it opens chrome with user data dir and navigates to AWS SSO login page. After that it fills the form and submits it. Finally it waits for aws sso to confirm login and then it closes chrome. There is default headless mode so you won't see anything. If you want to see what's going on you can use --no-headless option. It will open chrome and you will see what's going on.

Prerequisites

You need google-chrome installed and in your PATH.

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

fck_aws_sso-0.2.4.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

fck_aws_sso-0.2.4-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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