Skip to main content
版本:v1.2

阿里云 MONGODB-MULTI

描述

Terraform-based module for creating a MongoDB cloud database under AliCloud VPC

参数说明

属性

名称描述类型是否必须默认值
account_passwordPassword of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlinesstringfalse
backup_periodMongoDB Instance backup period. It is required when backup_time was existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].list(string)false
backup_timeMongoDB instance backup time. It is required when backup_period was existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to a random time, like '23:00Z-24:00Z'.stringfalse
create_resources_sizeThe specification of the monitoring region.stringfalse
db_instance_classThe specification of the instance. For more information about the value, see https://www.alibabacloud.com/help/doc-detail/57141.htmstringfalse
db_instance_storageThe storage space of the instance. Valid values: 10 to 3000. Unit: GB. You can only specify this value in 10 GB increments.numberfalse
engine_versionThe version number of the database. Valid value: 3.2, 3.4, 4.0.stringfalse
instance_charge_typeThe billing method of the instance. Valid values are Prepaid, PostPaid, Default to PostPaidstringfalse
instance_id(Deprecated) It has been deprecated from version 1.2.0 and use existing_instance_id instead.stringfalse
nameThe name of DB instance. It a string of 2 to 256 charactersstringfalse
periodThe duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1numberfalse
regionThe specification of the monitoring region.stringfalse
replication_factorThe number of nodes in the replica set instance. Valid values: 3, 5, 7. Default value: 3.numberfalse
security_ip_listList of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).list(string)false
storage_engineThe MongoDB storage engine, WiredTiger or RocksDB. Default value: WiredTiger.stringfalse
tagsA mapping of tags to assign to the mongodb instance resource.map(string)false
vswitch_idThe virtual switch ID to launch DB instances in one VPC.stringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse
zone_idThe ID of the zone. You can refer to https://www.alibabacloud.com/help/doc-detail/61933.htm.stringfalse

writeConnectionSecretToRef

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse