How do you access a specific version of a parameter from AWS Systems Manager Parameter Store

This was a bit tricky to find and doesn’t seem to be well documented.

    // version number below can be a number, i.e. 3 or a label
    let params = {
      Name: "/path/to/parameter:<version-number>",
      WithDecryption: false

    ssm.getParameter(params, function (err, data) {
      if (err) console.error(err, err.stack);
      else console.log(data)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.