最近更新时间:2019-12-12 16:53:30
Provides an RDS Read Only instance resource. A DB read only instance is an isolated database environment in the cloud.
»Create a RDS Read Only MySQL instance
resource "ksyun_krds_rr" "my_rds_rr"{
output_file = "output_file"
db_instance_identifier= "******"
db_instance_class= "db.ram.2|db.disk.50"
db_instance_name = "houbin_terraform_888_rr_1"
bill_type = "DAY"
security_group_id = "******"
parameters {
name = "auto_increment_increment"
value = "7"
}
parameters {
name = "binlog_format"
value = "ROW"
}
}
The following arguments are supported:
output_file
- (Required) will return the file name of the content storedb_instance_identifier
- (Required) passes in the instance ID of the RDS highly available instance. A RDS highly available instance can have at most three read-only instancesdb_instance_class
-(Required)-this value regex db.ram.d{1,3}|db.disk.d{1,5} , db.ram is rds random access memory size, db.disk is disk sizedb_instance_name
- (Required)instance namebill_type
- (Required)Bill type, year’month (monthly package), day (daily billing), default: year’monthduration
- (Optional) purchase duration in monthssecurity_group_id
- (Optional)security group IDproject_id
- (Optional) subproject IDparameters
- (Optional) database parametersIn addition to all arguments above, the following attributes are exported:
DBInstanceClass
- instance specificationVcpus
- number of CPUsDisk
- hard disk sizeRam
- memory sizeDBInstanceIdentifier
- instance IDDBInstanceName
- instance nameDBInstanceStatus
- instance statusDBInstanceType
- instance typeDBParameterGroupId
- parameter group IDGroupId
- group IDSecurityGroupId
- security group IDVip
- virtual IPPort
- port numberEngine
- Database EngineEngineVersion
- database engine versionInstanceCreateTime
- instance creation timeMasterUserName
- primary account user nameDatastoreVersionId
- database versionRegion
- regionVpcId
-virtual private network IDReadReplicaDBInstanceIdentifiers
- read only instanceBillType
- Bill typeMultiAvailabilityZone
- Multi availability zoneProductId
- Product IDDiskUsed
- hard disk usageProjectId
- Project IDProjectName
- project nameNOTE:RDS RR do not support modify
»Attributes Reference
The following attributes are exported:
id - The RDS instance ID.
port - RDS database connection port.
»Timeouts
NOTE: Available in 1.52.1+.
The timeouts block allows you to specify timeouts for certain actions:
create - (Defaults to 30 mins) Used when creating the db instance (until it reaches the initial Running status).
update - (Defaults to 30 mins) Used when updating the db instance (until it reaches the initial Running status).
delete - (Defaults to 10 mins) Used when terminating the db instance.
纯净模式
鼠标选中内容,快速反馈问题