79471396

Date: 2025-02-27 01:12:35
Score: 1.5
Natty:
Report link

Using the ARN works instead of using the names and this will throw an error aws ssm get-parameter --name "ec2-image-builder/devops/rhel8-stig-golden-image"

An error occurred (ValidationException) when calling the GetParameter operation: Parameter name: can't be prefixed with "ssm" (case-insensitive). If formed as a path, it can consist of sub-paths divided by slash symbol; each sub-path can be formed as a mix of letters, numbers and the following 3 symbols .-_

Instead use: $ aws ssm get-parameter --name arn:aws:service:us-east-1:0000000000:parameter/myparam

NOTE: If the parameter has a forward slash already do not add it $ aws ssm get-parameter --name arn:aws:service:us-east-1:0000000000:parameter${myparam}

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): 0000000000
  • Filler text (0): 0000000000
  • Low reputation (1):
Posted by: GuddyTech