Resolving AWS Secrets Manager Variables

Hi ,

I have a variable in AWS Secrets Manager which is a JSON.
I want to resolve a particular key inside that JSON in my serverless.yml file.
But by referencing using the ssm way in serverless , I m just able to retrieve the whole JSON , but not a particular key.
Also the JSON is retrieved as a string. But as per your documentation , the JSON gets retrieved as a YML object. This is not working for me .

In cloudformation we have resolution like
I am looking for something like this in serverless…

I tried reading the keys by
{{ssm:/aws/reference/secretsmanager/secret-id~true}.name} .Even this is not working as the value is retrieved as a json string.

Could you please help me ?

1 Like