• Stars
    star
    192
  • Rank 200,450 (Top 4 %)
  • Language
    Shell
  • Created almost 10 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI manager for AWS IAM access keys in Mac OS X keychain; succeeded by https://github.com/99designs/aws-vault

aws-keychain

Note: I recommend https://github.com/99designs/aws-vault instead, and will not be maintaining aws-keychain.

The aim of aws-keychain is to run commands that require AWS credentials without ever storing those credentials unencrypted on disk. Mac OS X's keychain is used for storage, and credentials are passed to commands via the well known environment variables that all tools look for.

aws-keychain    (c) 2014-2015 Paul Annesley    MIT license.

Store multiple AWS IAM access keys in Mac OS X keychain.
Check out one of them at a time into ~/.aws/credentials

Manage access keys in Keychain:
  aws-keychain add <name> <access_key_id> <secret_access_key>
  aws-keychain add <name> # (interactive prompt for key and secret)
  aws-keychain ls
  aws-keychain exec <name> <command ... >
  aws-keychain rm <name>

Install

Copy/symlink aws-keychain to somewhere in your path.

ln -s $(pwd)/aws-keychain /usr/local/bin

If you're using Zsh, copy/symlink aws-keychain-completion.zsh to _aws-keychain in an $fpath directory:

ln -s $(pwd)/aws-keychain-completion.zsh /usr/local/share/zsh/site-functions/_aws-keychain

If you're using Bash, source aws-keychain-completion.bash in your .bashrc or copy/symlink aws-keychain-completion.bash to your etc/bash_completion.d:

ln -s $(pwd)/aws-keychain-completion.bash /usr/local/etc/bash_completion.d/aws-keychain-completion.bash

Example

# beware shell history
$ aws-keychain add personal AKILNNK8O1KFMIZRQY1J QURSltVBG33e1qUxVhtsDw

$ aws-keychain add work
Access Key ID: AKIJA9JFOPAKMH9AJPCJ
Secret Access Key (hidden): ********

$ aws-keychain ls
personal
work

$ aws-keychain exec personal aws s3 ls
2012-08-22 13:56:43 some-bucket-name
2014-02-12 19:12:31 another-bucket

$ aws-keychain rm work
password has been deleted.

$ aws-keychain ls
personal

More Repositories

1

flip

Flip lets you declare and manage feature flags, backed by cookies (private testing) and database (site-wide).
Ruby
403
star
2

flexihash

Flexihash is a small PHP library which implements consistent hashing.
PHP
367
star
3

roflbalt

Canabalt inspired ASCII side-scroller in your console. #railscamp
Ruby
174
star
4

go6502

MOS 6502 emulator in Go.
Go
35
star
5

devise-login-cookie

Devise extension, sets login cookie for easier Single Sign On between same-domain apps.
Ruby
35
star
6

pda6502

Code + notes for a 6502-based breadboard computer.
Assembly
29
star
7

arduino-zero-without-ide

Arduino Zero toolchain without Arduino IDE (Atmel SAM D21 SAMD21G18A)
C
20
star
8

irc_machine

An IRC bot with a RESTful HTTP interface, built on Ruby and EventMachine.
Ruby
19
star
9

signed_json

Encodes and decodes data to a JSON string signed with OpenSSL HMAC. Great for signed cookies.
Ruby
13
star
10

dotvim

pda's vim configuration (deprecated / unmaintained)
Vim Script
10
star
11

c64.rb

Commodore 64 emulator in Ruby
Ruby
8
star
12

cfat16

FAT16 filesystem reader in C
C
8
star
13

cidrinfo

Given an IP CIDR (e.g. 10.20.30.40/20), explain and illustrate the address, network, masks, and host address range.
Go
7
star
14

dcpu16-asm-c

An assembler for DCPU-16, written in C.
C
6
star
15

bringit

PHP user agent for HTTP (unfinished, abandoned)
PHP
6
star
16

am_credit_card

ActiveMerchant::Billing::CreditCard, without ActiveMerchant.
Ruby
5
star
17

pda6502v2

8-bit homebrew computer; version 2
Rust
5
star
18

pacc-sinatra

Ruby + Sinatra + CouchDB + Tokyo Tyrant implementation of paul.annesley.cc
Ruby
5
star
19

jsurl

JSUrl aims to encapsulate the reading and manipulating of URLs in JavaScript.
JavaScript
5
star
20

they_love_you

The game of the decade, by Henrik, Zac and Paul.
JavaScript
5
star
21

avraek

Fundamentally flawed AVR-based USB adapter for Apple Extended Keyboard II
Eagle
4
star
22

bcryphby

A thin CLI wrapper around bcrypt-ruby, and then a thin PHP wrapper around that.
Ruby
4
star
23

digispark-asm

Digispark (attiny85+micronucleus) ASM code/build example.
Assembly
4
star
24

war2-docker

Run Warcraft II (Battle.net edition) in linux via Docker and Wine
Shell
3
star
25

chrome-westpac-password-keyboard

Chrome extension, replaces the terrible Westpac onscreen keyboard with a standard password input.
JavaScript
3
star
26

pacc-django

Django implementation of paul.annesley.cc
Python
2
star
27

pacc-piccolo

Implementation of paul.annesley.cc from which the piccolo mico-framework will be extracted.
JavaScript
2
star
28

dotzsh

Zsh configuration; clone to ~/.zsh and run ~/.zsh/install
Shell
2
star
29

pda.github.com

Paul Annesley - GitHub Pages
2
star
30

avr-led-cube

ATmega328P-powered 4x4x4 LED cube.
Arduino
2
star
31

treasurewar-bot-coffee

Treasure War bot: <canvas> + Socket.IO + CoffeeScript
JavaScript
1
star
32

path_router

Route HTTP requests to backend servers by URL path. [fundamentally flawed]
Ruby
1
star
33

gameoflife-cocoa

Just Messin': Conway's Game of Life in C, with a Cocoa/OpenGL frontend
C
1
star
34

they_love_you-web

Website for they_love_you
CoffeeScript
1
star
35

drztach

Tachometer for DR-Z400SM motorcycle
C
1
star
36

checkproc

A messy process monitoring script, found in a dusty archive
1
star
37

pacc-jekyll

paul.annesley.cc implemented with Jekyll
1
star
38

pacc-octopress

paul.annesley.cc on Octopress
JavaScript
1
star
39

ruby-test-sample

Ruby
1
star
40

pda64

Assembly
1
star
41

sequement

Sequence server in Ruby: fork(), select(), IPC over pipe(), async persistence.
Ruby
1
star
42

rbvm

Basic virtual machine and assembler in Ruby.
Ruby
1
star
43

dotfiles

Miscellaneous system configuration dot files.
Shell
1
star
44

avr-sram

AVR (ATmega328p) interface to 32KiB SRAM via shift registers
C
1
star