redyl

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 1 Imported by: 0

README

Stability

Warning: experimental

This is an experimental library, and is currently unsupported

redyl handles multi-factor authentication and automatic IAM key rotation for human use of the AWS API.

Usage

$ redyl

You should receive a prompt for an MFA code. If it's a good code, redyl will write rotate your access keys and write updated values to ~/.aws/credentials.

Requirements

You'll need your credentials files set up in a particular way for this to work:

$ cat ~/.aws/config

[default]
region = us-east-1
# you can find this under Assigned MFA device at https://console.aws.amazon.com/iam/home?#/users/youruser?section=security_credentials 
mfa_serial = arn:aws:iam::account_number:mfa/username 

$ cat ~/.aws/credentials

# use default_original here, not default - redyl will write temporary credentials to default
[default_original]
aws_access_key_id     = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY

Named profiles

If you'd like to use a named profile instead of default, use the profile argument. Let's say you're using a named profile called "operations"

redyl --profile=operations

This should work fine as long as you have sections like this in your config and credentials:

$ cat ~/.aws/config

[operations]
region = us-east-1
mfa_serial = arn:aws:iam::account_number:mfa/username

$ cat ~/.aws/credentials

[operations_original]
aws_access_key_id     = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY

Installation

  1. Find the latest release on https://github.com/pbs/redyl/releases and download the binary for your system (look for darwin if you're using a mac, linux or windows otherwise).

  2. Move the binary somewhere in your PATH

mv ~/Downloads/redyl-0.1.0-darwin-amd64 /usr/local/bin/redyl

  1. Set the executable bit

chmod +x /usr/local/bin/redyl

  1. redyl should now work, try redyl version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL