Skip to content

Glowing spork is an utility to generate aws temporary credencials.

License

Notifications You must be signed in to change notification settings

anderson-pids/glowing-spork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Glowing-spork

License: MIT AWS CLI Twitter: anderson_pids

Glowing spork is an utility to generate temporary credencials for developers.

Installation

Required

  • docker
  • docker-compose

Use makefile commands to install glowing-spork.

make build

AWS Credentials

Generate easily aws credentials, only need to export environment variables and temporary credentials can be created.

export variables:

export AWS_ACCESS_KEY_ID=<YOUR_PERMANENT_ACCESS_ID>
export AWS_SECRET_ACCESS_KEY=<YOUR_PERMANENT_SECRET_ACCESS_KEY>
export AWS_ACCOUNT_ID=<YOUR_ACCOUNT_ID>

Usage

make aws-auth username=<IAM_USER> mfa_code=<MFA_TOKEN>

Aws temporary credentials and token are generated into default folder ~/.aws and default token expiration time is 129600 (36h).

Config

All environment variables:

Environment Variable Default Value Optional
AWS_ACCESS_KEY_ID not set no
AWS_SECRET_ACCESS_KEY not set no
AWS_ACCOUNT_ID not set no
AWS_REGION sa-east-1 yes
AWS_TOKEN_DURATION 129600 yes
AWS_PROFILE default yes

Troubleshooting

  1. can't create /home/app/.aws/credentials: Permission denied

You must change permission for path ~/.aws/.


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Glowing spork is an utility to generate aws temporary credencials.

Resources

License

Stars

Watchers

Forks

Packages

No packages published