Glowing spork is an utility to generate temporary credencials for developers.
- docker
- docker-compose
Use makefile commands to install glowing-spork.
make build
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>
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).
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 |
can't create /home/app/.aws/credentials: Permission denied
You must change permission for path ~/.aws/.
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.