# Resolving AWS Secrets Manager Variables

**URL:** <https://forum.serverless.com/t/resolving-aws-secrets-manager-variables/8888>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [July 25, 2019, 10:36am UTC](https://forum.serverless.com/t/resolving-aws-secrets-manager-variables/8888 "2019-07-25T10:36:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinaya](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vinaya](https://forum.serverless.com/u/vinaya)\
**Post date:** [July 25, 2019, 10:36am UTC](https://forum.serverless.com/t/resolving-aws-secrets-manager-variables/8888/1 "2019-07-25T10:36:05Z")

</div>

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 .

> **[Serverless Variables](https://serverless.com/framework/docs/providers/aws/guide/variables/#reference-variables-using-the-ssm-parameter-store)**
>
> How to use Serverless Variables to insert dynamic configuration info into your serverless.yml

In cloudformation we have resolution like  
“{{resolve:secretsmanager:secret-id:SecretString:name}}”  
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 ?
