An open API service indexing awesome lists of open source software.

https://github.com/webdestroya/aws-sso

Utility to make using AWS SSO a little less annoying
https://github.com/webdestroya/aws-sso

aws aws-sso go golang

Last synced: 3 months ago
JSON representation

Utility to make using AWS SSO a little less annoying

Awesome Lists containing this project

README

          

# aws-sso

Writes credentials to your `~/.aws/credentials` file that were created via SSO configurations. This allows you to run old applications that rely on AccessKey/SecretKey credentials while still allowing you to get those credentials via SSO.

## Installation

```shell
brew install webdestroya/tap/awssso
```

## Usage

> [!WARNING]
> This will be modifying your AWS credentials file. Please create a backup before using this program just in case.

Pull credentials for the listed profiles and update the credentials file
```shell
awssso sync mycompany-staging mycompany-production
```

Detailed help can be viewed by passing `--help` to any command.

## Shell Alternative
You don't even need this program, you can do this entirely within the awscli itself. (Assuming your program can use environment variables instead of aws credentials file.)

```bash

# Login to your profile and get fresh credentials
aws sso login --profile something

# Set the credentials env vars
eval $(aws configure export-credentials --profile something --format env)

# Subsequent AWS commands will use the creds above
aws sts get-caller-identity

```