When I run the following command:
aws ssm get-parameter --name production.team.platform.creds --with-decryption --output text --query Parameter.Value
I get this output:
{
"type": "client_credentials",
"client_id": "internal-test",
"client_secret": "..."
}
I'd like be able to pull an indvidual parameter such that I could store it as a variable in a bash script like so:
TYPE=aws ssm get-parameter --name production.team.platform.creds --with-decryption --output text --query "Parameter.type"
echo $TYPE
In this iteration get the error ssm: command not found
When I get rid of the variable assignment and just run
aws ssm get-parameter --name production.team.platform.creds --with-decryption --output text --query "Parameter.type"
It returns none.
I tried referencing this solution Retrieve only one parameter value from aws ssm get-parameter command?
But did not find the formatting worked in my case.