AWS CLI 生成 Secret Manager
AWS CLI OpenSSL About 492 words创建命令
使用openssl生成32为Base64编码后的字符串,作为Secret。
aws secretsmanager create-secret \
--name myapp/uat/mykey \
--description "My key (uat)" \
--secret-string "$(openssl rand -base64 32)" \
--region us-east-1
更新命令
aws secretsmanager put-secret-value \
--secret-id myapp/uat/mykey \
--secret-string "$(openssl rand -base64 32)" \
--region us-east-1
Git Bash
openssl rand -base64 32
PowerShell
[Convert]::ToBase64String((1..32 | ForEach-Object { Get-Random -Maximum 256 }) -as [byte[]])
Views: 7 · Posted: 2026-10-16
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...