4

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.

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.

hendry
  • 9,725
  • 18
  • 81
  • 139

3 Answers3

3

Normally you would just append version to the name:

For example, to get the first version:

aws ssm get-parameters --names WINDOWS_PASSWORD:1 --with-decryption --query Parameters[0].Value --output text
Marcin
  • 215,873
  • 14
  • 235
  • 294
0

use below command aws ssm get-parameters --names : --with-decryption --query Parameters[0].Value --output text

Abhishek Kumar
  • 143
  • 1
  • 7
0

Try with below

aws ssm get-parameter-history \
    --name "MyParameter"
GRVPrasad
  • 1,228
  • 1
  • 9
  • 24