Skip to main content

Magic credentials on the AWS CLI home using AWS SSO login

Project description

aws-sso-magic tool cli

This Docker image updates the aws credentials file for the default profile from the aws sso login. At the moment you should copy/paste the url in your browser and complete the login process.

This Docker solution mixed the following repositories:

  1. aws-sso-util AWS SSO has some rough edges, and aws-sso-util is here to smooth them out, hopefully temporarily until AWS makes it better.
  2. aws-sso-credentials A simple Python tool to simplify getting short-term credential tokens for CLI/Boto3 operations when using AWS SSO.

Content of the repository

  • src - The main folder with the aws_sso_magic folder with the .py files & the requirements.txt.
  • docker-build.sh - A docker build tool (Linux/MacOS) to build the docker image locally.
    sudo ./docker-build.sh
    
  • pyproject.toml - The metadata file with the dependencies and application information.
  • Dockerfile - The docker file with the instructions to build the aws-sso-magic cli.

Installing aws-sso-magic tool from pyp.org

Prerequisites

  1. Python 3.9 installed.
  2. AWS CLI v2 installed, please click on the link depending of your OS.

Installation Steps

  1. pip install aws-sso-magic

How to use

  1. Execute the following command to configure the sso tool: aws-sso-magic configure
  2. Type the sso url, sso_region, and the rest of information.
  3. Execute the following command to log: aws-sso-magic login
  4. Select the profile to use.

How to use with pyp installer

  1. Follow the pyp aw-sso-magic project instructions.

    NOTE: You will need the aws cli v2 installed previously.

Prerequisites

  1. Python 3.9 installed.
  2. AWS CLI v2 installed, please click on the link depending of your OS.

Installation Steps

  1. pip install aws-sso-magic

How to use with Docker

  1. Please follow the instructions from the docker hub repository of aws_sso_magic

Docker Hub

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-sso-magic-1.0.15.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

aws_sso_magic-1.0.15-py3-none-any.whl (18.8 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