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?
I found this from terraform website
data "aws_secretsmanager_secret" "by-arn" {
arn = "arn:aws:secretsmanager:us-east-1:123456789012:secret:example-123456"
}
How do I then retrieve the value? Meaning what is the "get-value"
equivalent in terraform for an EC2 isntance?