Skip to content

Commit d2214f5

Browse files
committed
docs: Initial readme
1 parent 1de31ae commit d2214f5

File tree

1 file changed

+68
-14
lines changed

1 file changed

+68
-14
lines changed

README.md

Lines changed: 68 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,68 @@
1-
# glowing-spork
2-
Glowing spork is an utility to generate aws temporary credencials.
3-
4-
## Instalation
5-
- Required
6-
export environment variables:
7-
AWS_ACCESS_KEY_ID
8-
AWS_SECRET_ACCESS_KEY
9-
AWS_ACCOUNT_ID
10-
and then:
11-
> make aws-auth username=<IAM_USER> mfa_code=<MFA_TOKEN>
12-
13-
- FAQ
14-
1. Check permissions of folder `~/.aws`
1+
# Glowing-spork
2+
3+
<p align="center">
4+
<a href="https://github.com/anderson-pids/glowing-spork/blob/main/LICENSE">
5+
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-yellow.svg" target="_blank" />
6+
</a>
7+
<a href="https://aws.amazon.com/cli/">
8+
<img alt="AWS CLI" src="https://img.shields.io/badge/AWS-CLI-red.svg" target="_blank" />
9+
</a>
10+
</p>
11+
12+
Glowing spork is an utility to generate temporary credencials for developers.
13+
14+
## Installation
15+
16+
### Required
17+
- docker
18+
- docker-compose
19+
20+
Use makefile commands to install glowing-spork.
21+
22+
```bash
23+
make build
24+
```
25+
---
26+
27+
## AWS Credentials
28+
29+
Generate easily aws credentials, only need to export environment variables and temporary credentials can be created.
30+
31+
export variables:
32+
33+
```bash
34+
export AWS_ACCESS_KEY_ID=<YOUR_PERMANENT_ACCESS_ID>
35+
export AWS_SECRET_ACCESS_KEY=<YOUR_PERMANENT_SECRET_ACCESS_KEY>
36+
export AWS_ACCOUNT_ID=<YOUR_ACCOUNT_ID>
37+
```
38+
39+
### Usage
40+
41+
```bash
42+
make aws-auth username=<IAM_USER> mfa_code=<MFA_TOKEN>
43+
```
44+
45+
Aws temporary credentials and token are generated into default folder `~/.aws` and default token expiration time is 129600 (36h).
46+
47+
### Config
48+
49+
All environment variables:
50+
51+
| Environment Variable | Default Value | Optional |
52+
| ------------- | ------------- | ------------- |
53+
| AWS_ACCESS_KEY_ID | _not set_ | no |
54+
| AWS_SECRET_ACCESS_KEY | _not set_ | no |
55+
| AWS_ACCOUNT_ID | _not set_ | no |
56+
| AWS_REGION | _sa-east-1_ | yes |
57+
| AWS_TOKEN_DURATION | _129600_ | yes |
58+
| AWS_PROFILE | default | yes |
59+
60+
---
61+
62+
## Contributing
63+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
64+
65+
Please make sure to update tests as appropriate.
66+
67+
## License
68+
[MIT](https://choosealicense.com/licenses/mit/)

0 commit comments

Comments
 (0)