caws

command module
v0.0.0-...-3ff8b41 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 1 Imported by: 0

README

caws

A command line tool which manage aws credentials

      ,,. 、、
   _,ノ´.: : : : 丶-‐ァ…  ー- 、 ____,  
   \ __,ノ: : : : : : /     /: : : : 
   / ':: : : : : : : :〈     / : : : :
  ノ ノ: :ヽ: : : : : : :}     {: : : : 
 〔_  \:_:_>、: :l: : :ヽ、   1: : : : : 
   ` ̄    `{: : : : \ 、 }: : : : : :
            ヽ: : : :! ヽ  ̄{ : : : 

Installation

go get github.com/duck8823/caws

Usage

Show profile names
caws ls [--file <path to credentials file>]
Use specific profile
caws use --profile <profile to use>

Set specific credential to environment variable AWS_PROFILE

and start new shell.

Login and set credentials with MFA
caws mfa --profile <profile for mfa> \
         [--username <user name using the virtual mfa device>]
         [--serial-number <arn of the mfa device>] \
         [--output <output profile name>] \
         [--file <file set new profile>]

If you set a --output flag, this command set new profile to credentials file. Without --output, set environment variables bellow

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_SESSION_TOKEN

and new shell.

Exit shell
exit

Documentation

Overview

Copyright © 2019 shunsuke maeda

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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