[英]How to retrieve earlier version of AWS SSM password?
I use the AWS parameter store like so aws ssm get-parameters --names WINDOWS_PASSWORD --with-decryption --query Parameters[0].Value --output text
, but sometimes I need the earlier previous of the password when it rotates.我像这样使用 AWS 参数存储
aws ssm get-parameters --names WINDOWS_PASSWORD --with-decryption --query Parameters[0].Value --output text
,但有时轮换时我需要密码的前一个。
I don't understand for example how to retrieve version 1 of the password with the CLI, as opposed to say the latest version 2.例如,我不明白如何使用 CLI 检索密码的版本 1,而不是最新的版本 2。
Normally you would just append version to the name :通常你只需将append 版本命名为:
For example, to get the first version:例如,要获取第一个版本:
aws ssm get-parameters --names WINDOWS_PASSWORD:1 --with-decryption --query Parameters[0].Value --output text
use below command aws ssm get-parameters --names: --with-decryption --query Parameters[0].Value --output text使用下面的命令 aws ssm get-parameters --names: --with-decryption --query Parameters[0].Value --output text
Try with below试试下面
aws ssm get-parameter-history \
--name "MyParameter"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.