module"secret" {
source ="rhythmictech/secretsmanager-secret/aws"
version ="0.2.0"
name ="my-secret-string"
value =var.my_secret_string
tags = {
encoding ="none"
type ="string"
}
}
With a file
module"secret" {
source ="rhythmictech/secretsmanager-secret/aws"
version ="0.2.0"
name ="my-secret-file-base64-encoded"
value =base64encode(var.my_secret_file)
tags = {
encoding ="base64"
type ="file"
}
}
Requirements
Name
Version
terraform
>= 0.12
Providers
Name
Version
aws
n/a
Inputs
Name
Description
Type
Default
Required
description
n/a
string
"terraform-managed secret"
no
kms_key_id
Optional. The KMS Key ID to encrypt the secret. KMS key arn or alias can be used.
any
null
no
name
Name of secret to store
string
n/a
yes
policy
Optional. The resource policy which controls access to the secret.