aws_secretsmanager_raw function
The aws_secretsmanager_raw function retrieves the raw value of a secret from Amazon Web
Services (AWS) Secrets Manager.
aws_secretsmanager_raw(NAME)
The function returns plaintext secrets as strings. For key-value secrets, it returns the raw JSON value. Use this function when you need the complete secret value instead of one key.
Example
locals {
database_credentials = jsondecode(
aws_secretsmanager_raw("production/database")
)
}
In order to use this function you have to configure valid AWS credentials using one of the following methods:
Related functions
aws_secretsmanagerretrieves one key from a key-value secret.jsondecodeconverts the raw JSON value into an object.