Skip to main content
Version: v1.7

Alibaba Cloud MONGODB-MULTI

Description

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

Specification

NameDescriptionTypeRequiredDefault
account_passwordPassword of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.stringfalse
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.htm.stringfalse
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 PostPaid.stringfalse
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 characters.stringfalse
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 1.numberfalse
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 to.writeConnectionSecretToReffalse
zone_idThe ID of the zone. You can refer to https://www.alibabacloud.com/help/doc-detail/61933.htm.stringfalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written to.stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to.stringfalse