title: How to retrieve a secret in terraform from aws secret manager
body: <p>I have a secret stored in secrets manager to which I have access to the arn. I want to retrieve the value from this arn and use it in terraform how can I achieve this?</p>
  
  <p>I found this from terraform website</p>
  
  <pre><code>data "aws_secretsmanager_secret" "by-arn" {
    arn = "arn:aws:secretsmanager:us-east-1:123456789012:secret:example-123456"
  }
  </code></pre>
  
  <p>How do I then retrieve the value? Meaning what is the "<code>get-value"</code> equivalent in terraform for an EC2 isntance?</p>