https://pulumi.com logo
#general
Title
# general
e

early-musician-41645

05/21/2019, 10:30 PM
SecretsManager: I need to pull the value of a secret stored in AWS secretsmanager. This code: https://pulumi.io/reference/pkg/nodejs/@pulumi/aws/secretsmanager/ Says:
Copy code
function getSecret 
getSecret(args?: GetSecretArgs, opts?: pulumi.InvokeOptions): Promise<GetSecretResult>

Retrieve metadata information about a Secrets Manager secret. To retrieve a secret value, see the aws_secretsmanager_secret_version data source.
The code comment links here: https://www.terraform.io/docs/providers/aws/d/secretsmanager_secret_version.html After looking through the code and the reference I still don't know how to retrieve a secret value. Any pointers?