Skip to contents

Get a secret

Usage

aws_secrets_get(id, ...)

Arguments

id

(character) The name or ARN of the secret. required

...

further named parameters passed on to get_secret_value https://www.paws-r-sdk.com/docs/secretsmanager_get_secret_value/

Value

(list) with fields:

  • ARN

  • Name

  • VersionId

  • SecretBinary

  • SecretString

  • VersionStages

  • CreatedDate

Examples

if (FALSE) { # \dontrun{
# Does exist
aws_secrets_get(id = "MyTestDatabaseSecret")

# Does not exist
# aws_secrets_get(id = "DoesntExist")
#> Error: ResourceNotFoundException (HTTP 400). Secrets Manager
#>   can't find the specified secret.
} # }