You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"vault_database_secret_backend_role" {
source="./modules/vault/r/vault_database_secret_backend_role"# backend - (required) is a type of stringbackend=null# creation_statements - (required) is a type of list of stringcreation_statements=[]
# db_name - (required) is a type of stringdb_name=null# default_ttl - (optional) is a type of numberdefault_ttl=null# max_ttl - (optional) is a type of numbermax_ttl=null# name - (required) is a type of stringname=null# renew_statements - (optional) is a type of list of stringrenew_statements=[]
# revocation_statements - (optional) is a type of list of stringrevocation_statements=[]
# rollback_statements - (optional) is a type of list of stringrollback_statements=[]
}
variable"backend" {
description="(required) - The path of the Database Secret Backend the role belongs to."type=string
}
variable"creation_statements" {
description="(required) - Database statements to execute to create and configure a user."type=list(string)
}
variable"db_name" {
description="(required) - Database connection to use for this role."type=string
}
variable"default_ttl" {
description="(optional) - Default TTL for leases associated with this role, in seconds."type=numberdefault=null
}
variable"max_ttl" {
description="(optional) - Maximum TTL for leases associated with this role, in seconds."type=numberdefault=null
}
variable"name" {
description="(required) - Unique name for the role."type=string
}
variable"renew_statements" {
description="(optional) - Database statements to execute to renew a user."type=list(string)
default=null
}
variable"revocation_statements" {
description="(optional) - Database statements to execute to revoke a user."type=list(string)
default=null
}
variable"rollback_statements" {
description="(optional) - Database statements to execute to rollback a create operation in the event of an error."type=list(string)
default=null
}
resource"vault_database_secret_backend_role""this" {
# backend - (required) is a type of stringbackend=var.backend# creation_statements - (required) is a type of list of stringcreation_statements=var.creation_statements# db_name - (required) is a type of stringdb_name=var.db_name# default_ttl - (optional) is a type of numberdefault_ttl=var.default_ttl# max_ttl - (optional) is a type of numbermax_ttl=var.max_ttl# name - (required) is a type of stringname=var.name# renew_statements - (optional) is a type of list of stringrenew_statements=var.renew_statements# revocation_statements - (optional) is a type of list of stringrevocation_statements=var.revocation_statements# rollback_statements - (optional) is a type of list of stringrollback_statements=var.rollback_statements
}