1
0
Files
terraform.examples/modules/security_identity_compliance/secretsmanager-secret/README.md
T

2.3 KiB

secretsmanager-secret

Create secretsmanager secret. Specify secret_version if you do not want terraform to recreate the secret everytime terraform applies. Otherwise, becuase this module uses emphemeral resource, the secret will be regenerated and replaced every time.

Requirements

Name Version
terraform >= 1.3.0
aws >= 5.0

Providers

Name Version
aws >= 5.0
random n/a

Modules

No modules.

Resources

Name Type
aws_secretsmanager_secret.secret1 resource
aws_secretsmanager_secret_policy.policy resource
aws_secretsmanager_secret_version.this resource
random_id.rid resource
aws_caller_identity.this data source
aws_iam_policy_document.policy-file data source

Inputs

Name Description Type Default Required
generate_secret If set to true, a secure password will be generated and saved. bool false no
kms_key_id Custom kms key id. If not specified, the default key aws/secretmanager key will be used. string null no
secret_description n/a any n/a yes
secret_name n/a any n/a yes
secret_policy By default, cross-account access is denied string null no
secret_value n/a string null no
secret_version Secret version number. Increment to modify secret, or leave this unset to have your secret updated everytime terraform applies number null no

Outputs

Name Description
secret_arn n/a
secret_id n/a

Authorship

This module was developed by UPDATE_THIS.