title: How to retrieve Secret Manager data in buildspec.yaml
body: <p>Im working on creating the CodeBuild which is integrated with SonarQube, So I pass values and sonar credentials directly in my Buildspec.yaml</p>
  
  <p>Instead of Hardcoding directly, I tried to retrieve using the below command from SecretManager as it is mentioned in the below link. But it is not getting the correct values. it throws an error.</p>
  
  <p><strong>Command</strong> : '{{resolve:secretsmanager:MyRDSSecret:SecretString:username}}'</p>
  
  <p><strong>Link</strong>: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-secretsmanager" rel="noreferrer">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-secretsmanager</a></p>
  
  <p><strong>Error</strong> [ERROR] SonarQube server [{{resolve:secretsmanager:arn:aws:secretsmanager:us-east-1:********:secret:**********:SecretString:SonarURL}}] can not be reached</p>
  
  <p><strong>How I used</strong> echo '{{resolve:secretsmanager:arn:aws:secretsmanager:us-east-1:***:secret:**************:SecretString:*******}}'</p>
  
  <p>Note: All the * inside my commard are the secretname and secreturl</p>