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"brightbox_database_server" {
source="./modules/brightbox/r/brightbox_database_server"# allow_access - (required) is a type of set of stringallow_access=[]
# database_engine - (optional) is a type of stringdatabase_engine=null# database_type - (optional) is a type of stringdatabase_type=null# database_version - (optional) is a type of stringdatabase_version=null# description - (optional) is a type of stringdescription=null# locked - (optional) is a type of boollocked=null# maintenance_hour - (optional) is a type of numbermaintenance_hour=null# maintenance_weekday - (optional) is a type of numbermaintenance_weekday=null# name - (optional) is a type of stringname=null# snapshot - (optional) is a type of stringsnapshot=null# snapshots_schedule - (optional) is a type of stringsnapshots_schedule=null# zone - (optional) is a type of stringzone=nulltimeouts=[{
create =null
delete =null
}]
}
variable"allow_access" {
description="(required) - An array of resources allowed to access the database. Accepted values include `any`, `IPv4 address`, `server identifier`, `server group identifier`"type=set(string)
}
variable"database_engine" {
description="(optional) - The DBMS engine of the Database Server"type=stringdefault=null
}
variable"database_type" {
description="(optional) - ID of the database type to use"type=stringdefault=null
}
variable"database_version" {
description="(optional) - The version of the given engine in use"type=stringdefault=null
}
variable"description" {
description="(optional) - Editable user label"type=stringdefault=null
}
variable"locked" {
description="(optional) - Initial password required to login, only available at creation or following a password reset request"type=booldefault=null
}
variable"maintenance_hour" {
description="(optional) - Number representing 24hr time start of maintenance window hour for x:00-x:59 (0-23)"type=numberdefault=null
}
variable"maintenance_weekday" {
description="(optional) - Numerical index of weekday (0 is Sunday, 1 is Monday...) to set when automatic updates may be performed"type=numberdefault=null
}
variable"name" {
description="(optional) - Editable user label"type=stringdefault=null
}
variable"snapshot" {
description="(optional) - Identifier for an SQL snapshot to use as the basis of the new instance. Creates and restores the database from the snapshot"type=stringdefault=null
}
variable"snapshots_schedule" {
description="(optional) - Crontab pattern for scheduled snapshots. Must be at least hourly"type=stringdefault=null
}
variable"zone" {
description="(optional) - ID of the zone the database server is in"type=stringdefault=null
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
}
))
default=[]
}
resource"brightbox_database_server""this" {
# allow_access - (required) is a type of set of stringallow_access=var.allow_access# database_engine - (optional) is a type of stringdatabase_engine=var.database_engine# database_type - (optional) is a type of stringdatabase_type=var.database_type# database_version - (optional) is a type of stringdatabase_version=var.database_version# description - (optional) is a type of stringdescription=var.description# locked - (optional) is a type of boollocked=var.locked# maintenance_hour - (optional) is a type of numbermaintenance_hour=var.maintenance_hour# maintenance_weekday - (optional) is a type of numbermaintenance_weekday=var.maintenance_weekday# name - (optional) is a type of stringname=var.name# snapshot - (optional) is a type of stringsnapshot=var.snapshot# snapshots_schedule - (optional) is a type of stringsnapshots_schedule=var.snapshots_schedule# zone - (optional) is a type of stringzone=var.zonedynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
}
}
}