No description or website provided.
Go Makefile
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.chglog
.circleci
awslogin
tests/.aws
.gitignore
CHANGELOG.md
Gopkg.lock
Gopkg.toml
Makefile
README.md
awslogin.go
awslogin_test.go
browse.go
browse_test.go
config.go
config_test.go
version.go

README.md

awslogin

CircleCI

Description

Using AssumeRole, accept IAMRole and log in to the AWS management console.

Usage

  • Print Help.
$ awslogin -h
Using AssumeRole, accept IAMRole and login to the AWS management console.

Usage:
  awslogin [flags]
  awslogin [command]

Available Commands:
  help        Help about any command
  list        List profiles
  version     Show version

Flags:
  -a, --app string             Opens with the specified application.
  -d, --duration-seconds int   Request a session duration seconds. 900 - 43200 (default 3600)
  -h, --help                   help for awslogin
  -p, --profile string         Use a specific profile.
  -e, --read-from-env          Use a specific profile read from the environment. [$AWS_PROFILE]

Use "awslogin [command] --help" for more information about a command.
  • Login AWS management console.
$ awslogin
(open browser)
  • Login AWS management console using a specific profile.
$ awslogin -p profile-1
(open browser)
  • Login AWS management console using a specific profile read from the environment.
$ export AWS_PROFILE=profile-1
$ awslogin -e
(open browser)
  • Print Arns.
$ awslogin list
test
profile-1
profile-2

Install

$ brew tap youyo/awslogin
$ brew install awslogin

Contribution

  1. Fork (https://github.com/youyo/awslogin/fork)
  2. Create a feature branch
  3. Setup Environment make setup && make deps
  4. Write code
  5. Run gofmt -s
  6. Execute test make test
  7. Commit your changes
  8. Rebase your local changes against the master branch
  9. Create a new Pull Request

Author

youyo