description="Whether to create this resource or not?"
description="Whether to create this resource or not?"
type=bool
default=true
default=true
}
}
variable"identifier"{
variable"identifier"{
description="The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier"
description="The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier"
type=string
}
}
variable"allocated_storage"{
variable"allocated_storage"{
description="The allocated storage in gigabytes"
description="The allocated storage in gigabytes"
type=string
}
}
variable"storage_type"{
variable"storage_type"{
description="One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'."
description="One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'."
type=string
default="gp2"
default="gp2"
}
}
variable"storage_encrypted"{
variable"storage_encrypted"{
description="Specifies whether the DB instance is encrypted"
description="Specifies whether the DB instance is encrypted"
type=bool
default=false
default=false
}
}
variable"kms_key_id"{
variable"kms_key_id"{
description="The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage_encrypted is set to true and kms_key_id is not specified the default KMS key created in your account will be used"
description="The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage_encrypted is set to true and kms_key_id is not specified the default KMS key created in your account will be used"
type=string
default=""
default=""
}
}
variable"replicate_source_db"{
variable"replicate_source_db"{
description="Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate."
description="Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate."
type=string
default=""
default=""
}
}
variable"snapshot_identifier"{
variable"snapshot_identifier"{
description="Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05."
description="Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05."
type=string
default=""
default=""
}
}
variable"license_model"{
variable"license_model"{
description="License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1"
description="License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1"
type=string
default=""
default=""
}
}
variable"iam_database_authentication_enabled"{
variable"iam_database_authentication_enabled"{
description="Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled"
description="Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled"
type=bool
default=false
default=false
}
}
variable"engine"{
variable"engine"{
description="The database engine to use"
description="The database engine to use"
type=string
}
}
variable"engine_version"{
variable"engine_version"{
description="The engine version to use"
description="The engine version to use"
type=string
}
}
variable"instance_class"{
variable"instance_class"{
description="The instance type of the RDS instance"
description="The instance type of the RDS instance"
type=string
}
}
variable"name"{
variable"name"{
description="The DB name to create. If omitted, no database is created initially"
description="The DB name to create. If omitted, no database is created initially"
type=string
default=""
default=""
}
}
variable"username"{
variable"username"{
description="Username for the master DB user"
description="Username for the master DB user"
type=string
}
}
variable"password"{
variable"password"{
description="Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file"
description="Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file"
type=string
}
}
variable"port"{
variable"port"{
description="The port on which the DB accepts connections"
description="The port on which the DB accepts connections"
type=string
}
}
variable"final_snapshot_identifier"{
variable"final_snapshot_identifier"{
description="The name of your final DB snapshot when this DB instance is deleted."
description="The name of your final DB snapshot when this DB instance is deleted."
default=false
type=string
default=null
}
}
variable"vpc_security_group_ids"{
variable"vpc_security_group_ids"{
description="List of VPC security groups to associate"
description="List of VPC security groups to associate"
type=list(string)
default=[]
default=[]
}
}
variable"db_subnet_group_name"{
variable"db_subnet_group_name"{
description="Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC"
description="Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC"
type=string
default=""
default=""
}
}
variable"parameter_group_name"{
variable"parameter_group_name"{
description="Name of the DB parameter group to associate"
description="Name of the DB parameter group to associate"
type=string
default=""
default=""
}
}
variable"availability_zone"{
variable"availability_zone"{
description="The Availability Zone of the RDS instance"
description="The Availability Zone of the RDS instance"
type=string
default=""
default=""
}
}
variable"multi_az"{
variable"multi_az"{
description="Specifies if the RDS instance is multi-AZ"
description="Specifies if the RDS instance is multi-AZ"
type=bool
default=false
default=false
}
}
variable"iops"{
variable"iops"{
description="The amount of provisioned IOPS. Setting this implies a storage_type of 'io1'"
description="The amount of provisioned IOPS. Setting this implies a storage_type of 'io1'"
type=number
default=0
default=0
}
}
variable"publicly_accessible"{
variable"publicly_accessible"{
description="Bool to control if instance is publicly accessible"
description="Bool to control if instance is publicly accessible"
type=bool
default=false
default=false
}
}
variable"monitoring_interval"{
variable"monitoring_interval"{
description="The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60."
description="The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60."
type=number
default=0
default=0
}
}
variable"monitoring_role_arn"{
variable"monitoring_role_arn"{
description="The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero."
description="The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero."
type=string
default=""
default=""
}
}
variable"monitoring_role_name"{
variable"monitoring_role_name"{
description="Name of the IAM role which will be created when create_monitoring_role is enabled."
description="Name of the IAM role which will be created when create_monitoring_role is enabled."
type=string
default="rds-monitoring-role"
default="rds-monitoring-role"
}
}
variable"create_monitoring_role"{
variable"create_monitoring_role"{
description="Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs."
description="Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs."
type=bool
default=false
default=false
}
}
variable"allow_major_version_upgrade"{
variable"allow_major_version_upgrade"{
description="Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible"
description="Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible"
type=bool
default=false
default=false
}
}
variable"auto_minor_version_upgrade"{
variable"auto_minor_version_upgrade"{
description="Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window"
description="Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window"
type=bool
default=true
default=true
}
}
variable"apply_immediately"{
variable"apply_immediately"{
description="Specifies whether any database modifications are applied immediately, or during the next maintenance window"
description="Specifies whether any database modifications are applied immediately, or during the next maintenance window"
type=bool
default=false
default=false
}
}
variable"maintenance_window"{
variable"maintenance_window"{
description="The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00'"
description="The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00'"
type=string
}
}
variable"skip_final_snapshot"{
variable"skip_final_snapshot"{
description="Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final_snapshot_identifier"
description="Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final_snapshot_identifier"
type=bool
default=true
default=true
}
}
variable"copy_tags_to_snapshot"{
variable"copy_tags_to_snapshot"{
description="On delete, copy all Instance tags to the final snapshot (if final_snapshot_identifier is specified)"
description="On delete, copy all Instance tags to the final snapshot (if final_snapshot_identifier is specified)"
type=bool
default=false
default=false
}
}
variable"backup_retention_period"{
variable"backup_retention_period"{
description="The days to retain backups for"
description="The days to retain backups for"
type=number
default=1
default=1
}
}
variable"backup_window"{
variable"backup_window"{
description="The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance_window"
description="The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance_window"
type=string
}
}
variable"tags"{
variable"tags"{
description="A mapping of tags to assign to all resources"
description="A mapping of tags to assign to all resources"
type=map(string)
default={}
default={}
}
}
variable"option_group_name"{
variable"option_group_name"{
description="Name of the DB option group to associate."
description="Name of the DB option group to associate."
type=string
default=""
default=""
}
}
variable"timezone"{
variable"timezone"{
description="(Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information."
description="(Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information."
type=string
default=""
default=""
}
}
variable"character_set_name"{
variable"character_set_name"{
description="(Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information"
description="(Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information"
type=string
default=""
default=""
}
}
variable"enabled_cloudwatch_logs_exports"{
variable"enabled_cloudwatch_logs_exports"{
description="List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL)."
description="List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL)."
type=list(string)
default=[]
default=[]
}
}
variable"timeouts"{
variable"timeouts"{
description="(Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times"
description="(Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times"
type="map"
type=map(string)
default={
default={
create="40m"
create="40m"
update="80m"
update="80m"
...
@@ -211,5 +252,6 @@ variable "timeouts" {
...
@@ -211,5 +252,6 @@ variable "timeouts" {
variable"deletion_protection"{
variable"deletion_protection"{
description="The database can't be deleted when this value is set to true."
description="The database can't be deleted when this value is set to true."