์๋ ํ์ธ์! ํด๋น ๋๊ตฌ๋ Secret Manager์์ ์ ์ฅ์ค์ธ Secret์ ๊ฐ์ ธ์์ ํ์ผ์ ํํ๋ก ์ ์ฅํ๋ ๋๊ตฌ์ ๋๋ค.
Hello! This tool is a tool that retrieves the secret stored in Secret Manager and saves it in the form of a file.
AWS Secrets Manager๋ AWS์์ ์ ๊ณตํ๋ Secret ๊ด๋ฆฌ ๋๊ตฌ์ ๋๋ค. ํด๋น ์๋น์ค๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์๊ฒฉ ์ฆ๋ช , API ํค ๋ฐ ๊ธฐํ Secret์ ์๋ช ์ฃผ๊ธฐ ๋์ ์ฝ๊ฒ ๋กํ ์ด์ ํ๊ฑฐ๋, ๊ด๋ฆฌ ๋ฐ ๊ฒ์ํ ์ ์๋๋ก ์ง์ํฉ๋๋ค.
AWS Secrets Manager๋ is a secrets management service that helps you protect access to your applications, services, and IT resources. This service enables you to easily rotate, manage, and retrieve database credentials, API keys, and other secrets throughout their lifecycle.
ํด๋น ๋๊ตฌ๋ฅผ ์ฌ์ฉํ๋ฉด Secret์ ๊ด๋ฆฌํ๊ณ , Secret์ ์ฌ์ฉํ๋ ์๋น์ค์์๋ Secret์ ๊ฐ์ ธ์์ ํ์ผ์ ํํ๋ก ๋ก์ปฌ PC์ ์ ์ฅํ ์ ์์ต๋๋ค.
if you use this tool, you can manage your secret and get secret from AWS Secret Manager and save it as a file in your local PC.
๋ณด์ ์์ ์ด์ ๋ก AWS ์ฝ์์ ๊ฐ๋ฐ์์๊ฒ ์ ๊ณตํ์ง ์๊ฑฐ๋, Slack๊ณผ ๊ฐ์ ๋ฉ์ ์ ๋ฅผ ์ด์ฉํด Secret์ ๊ณต์ ํ๋ ํํ๋ฅผ ๋ฐฉ์งํ๊ณ ์ ํด๋น ๋๊ตฌ๋ฅผ ๋ง๋ค์์ต๋๋ค.
For security reasons, we do not provide AWS console to developers or prevent sharing secrets using messengers such as Slack.
ํน์ Golang์ด ์ค์น๋์ด ์์ง ์๋์?
$ go install github.com/YangTaeyoung/[email protected]
$ aws-secret-gen -c <config path> -o <output path>
ํ๋๊ทธ | ์ค๋ช | ๊ธฐ๋ณธ ๊ฐ |
---|---|---|
-c |
AWS Secret Generator์ Config๋ฅผ ์ ์ฅํ๊ฑฐ๋, ๋ถ๋ฌ์ฌ ์ฃผ์ | ~/.aws-secret-gen/config |
-o |
AWS Secrets Manager์์ ๊ฐ์ ธ์จ Secrets๋ฅผ ์ ์ฅํ ํ์ผ ๊ฒฝ๋ก (ํ์ฅ์๋ฅผ ํฌํจํ ์ ์์ต๋๋ค.) | โ ๊ธฐ๋ณธ๊ฐ ์์ (required) |
Flag | Description | Default |
---|---|---|
-c |
Save or load the Config of AWS Secret Generator | ~/.aws-secret-gen/config |
-o |
The file path to save the Secrets retrieved from AWS Secrets Manager (can include the extension.) | โ No default value (required) |
$ aws-secret-gen
> zsh: command not found: aims-cli
go๋ก ์ค์นํ ํ๋ก๊ทธ๋จ์ ์คํํ ๋ ๋ฐ์ํ๋ ์๋ฌ์ ๋๋ค. ~/.zshrc ํ์ผ(ํน์ ~/.bashrc)์ ํ๋จ์ ๋ค์๊ณผ ๊ฐ์ด ํ๊ฒฝ๋ณ์๋ฅผ ์ถ๊ฐํฉ๋๋ค.
error that occurs when running a program installed with go. Add the environment variable as follows at the bottom of the ~/.zshrc file (or ~/.bashrc).
# ...
export PATH="$HOME/go/bin:$PATH"