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}