λ沢.dev

lambdasawa.dev


Project maintained by lambdasawa Hosted on GitHub Pages — Theme by mattgraham

Secrets Manager

Shell

作成

aws secretsmanager create-secret --name foo --secret-string '{"HOGE_API_KEY":"foo"}'

更新

aws secretsmanager put-secret-value --secret-id foo --secret-string '{"HOGE_API_KEY":"bar"}'

値を取得

aws secretsmanager get-secret-value --secret-id foo | jq -r '.SecretString | fromjson | .HOGE_API_KEY'