Skip to content

Commit be42081

Browse files
Rich-yixiaozhu36
authored andcommitted
Add variables type and CHANGELOG.md
1 parent 7e7664d commit be42081

File tree

9 files changed

+77
-15
lines changed

9 files changed

+77
-15
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77

88
# .tfvars files
99
*.tfvars
10+
.idea*
11+
*.log
12+
*.tfstate.*

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 1.2.0 (Unreleased)
2+
## 1.2.0 (January 16, 2020)
3+
4+
IMPROVEMENTS:
5+
6+
- Add variables type and CHANGELOG.md [GH-4](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/pull/4)
7+
8+
## 1.0.0 (January 16, 2020)
9+
10+
IMPROVEMENTS:
11+
12+
- imporve(mongodb): update the module to the format of the new version [GH-3](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/pull/3)

README-CN.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Terraform module which creates MongoDB instance resources on Alibaba Cloud
2-
1+
Terraform module which creates MongoDB instance resources on Alibaba Cloud
32
terraform-alicloud-mongodb
43
=====================================================================
54

@@ -8,7 +7,7 @@ terraform-alicloud-mongodb
87

98
本 Module 支持创建以下资源:
109

11-
* [MongoDB 数据库实例_(mongodb_instance)](https://www.terraform.io/docs/providers/alicloud/r/mongodb_instance.html)
10+
* [MongoDB 数据库实例 (mongodb instance)](https://www.terraform.io/docs/providers/alicloud/r/mongodb_instance.html)
1211

1312
## Terraform 版本
1413

@@ -48,10 +47,10 @@ module "mongodb" {
4847

4948
## 模块
5049

51-
* [mongodb-3.4-rocksdb](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-3.4-rocksdb)
52-
* [mongodb-3.4-wiredtiger](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-3.4-wiredtiger)
53-
* [mongodb-4.0-wiredtiger](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-4.0-wiredtiger)
54-
* [mongodb-4.2-wiredtiger](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-4.2-wiredtiger)
50+
* [mongodb-3.4-rocksdb](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-3.4-rocksdb)
51+
* [mongodb-3.4-wiredtiger](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-3.4-wiredtiger)
52+
* [mongodb-4.0-wiredtiger](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-4.0-wiredtiger)
53+
* [mongodb-4.2-wiredtiger](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-4.2-wiredtiger)
5554

5655

5756
## 注意事项

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Terraform module which creates MongoDB instance on Alibaba Cloud
2-
1+
Terraform module which creates MongoDB instance on Alibaba Cloud
32
terraform-alicloud-mongodb
43
=====================================================================
54

@@ -9,7 +8,7 @@ Terraform module which creates MongoDB replica instance resources on Alibaba Clo
98

109
These types of resources are supported:
1110

12-
* [Alicloud_mongodb_instance](https://www.terraform.io/docs/providers/alicloud/r/mongodb_instance.html)
11+
* [Alicloud mongodb instance](https://www.terraform.io/docs/providers/alicloud/r/mongodb_instance.html)
1312

1413
----------------------
1514

@@ -53,12 +52,12 @@ module "mongodb" {
5352

5453
* [MongoDB example](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/examples/mongodb)
5554

56-
## Module
55+
## Modules
5756

58-
* [mongodb-3.4-rocksdb](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-3.4-rocksdb)
59-
* [mongodb-3.4-wiredtiger](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-3.4-wiredtiger)
60-
* [mongodb-4.0-wiredtiger](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-4.0-wiredtiger)
61-
* [mongodb-4.2-wiredtiger](https://github.com/terraform-alicloud-mongodb/tree/mongodb/modules/mongodb-4.2-wiredtiger)
57+
* [mongodb-3.4-rocksdb](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-3.4-rocksdb)
58+
* [mongodb-3.4-wiredtiger](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-3.4-wiredtiger)
59+
* [mongodb-4.0-wiredtiger](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-4.0-wiredtiger)
60+
* [mongodb-4.2-wiredtiger](https://github.com/terraform-alicloud-modules/terraform-alicloud-mongodb/tree/master/modules/mongodb-4.2-wiredtiger)
6261

6362
## Notes
6463

modules/mongodb-3.4-rocksdb/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
#################
44
variable "profile" {
55
description = "The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable. "
6+
type = string
67
default = ""
78
}
89

910
variable "shared_credentials_file" {
1011
description = "This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used. "
12+
type = string
1113
default = ""
1214
}
1315

1416
variable "region" {
1517
description = "The region used to launch this module resources. "
18+
type = string
1619
default = ""
1720
}
1821

@@ -34,16 +37,19 @@ variable "db_instance_storage" {
3437

3538
variable "db_instance_class" {
3639
description = "The specification of the instance. For more information about the value, see https://www.alibabacloud.com/help/doc-detail/57141.htm"
40+
type = string
3741
default = ""
3842
}
3943

4044
variable "name" {
4145
description = " The name of DB instance. It a string of 2 to 256 characters"
46+
type = string
4247
default = ""
4348
}
4449

4550
variable "instance_charge_type" {
4651
description = "The billing method of the instance. Valid values are Prepaid, PostPaid, Default to PostPaid"
52+
type = string
4753
default = "PostPaid"
4854
}
4955

@@ -54,6 +60,7 @@ variable "period" {
5460

5561
variable "zone_id" {
5662
description = "The ID of the zone. You can refer to https://www.alibabacloud.com/help/doc-detail/61933.htm. "
63+
type = string
5764
default = ""
5865
}
5966

@@ -69,6 +76,7 @@ variable "security_ip_list" {
6976

7077
variable "account_password" {
7178
description = "Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines"
79+
type = string
7280
default = ""
7381
}
7482

@@ -84,6 +92,7 @@ variable "backup_period" {
8492
}
8593
variable "backup_time" {
8694
description = "MongoDB 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`. "
95+
type = string
8796
default = "23:00Z-24:00Z"
8897
}
8998
variable "tags" {

modules/mongodb-3.4-wiredtiger/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
#################
44
variable "profile" {
55
description = "The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable. "
6+
type = string
67
default = ""
78
}
89

910
variable "shared_credentials_file" {
1011
description = "This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used. "
12+
type = string
1113
default = ""
1214
}
1315

1416
variable "region" {
1517
description = "The region used to launch this module resources. "
18+
type = string
1619
default = ""
1720
}
1821

@@ -34,16 +37,19 @@ variable "db_instance_storage" {
3437

3538
variable "db_instance_class" {
3639
description = "The specification of the instance. For more information about the value, see https://www.alibabacloud.com/help/doc-detail/57141.htm"
40+
type = string
3741
default = ""
3842
}
3943

4044
variable "name" {
4145
description = " The name of DB instance. It a string of 2 to 256 characters"
46+
type = string
4247
default = ""
4348
}
4449

4550
variable "instance_charge_type" {
4651
description = "The billing method of the instance. Valid values are Prepaid, PostPaid, Default to PostPaid"
52+
type = string
4753
default = "PostPaid"
4854
}
4955

@@ -54,6 +60,7 @@ variable "period" {
5460

5561
variable "zone_id" {
5662
description = "The ID of the zone. You can refer to https://www.alibabacloud.com/help/doc-detail/61933.htm. "
63+
type = string
5764
default = ""
5865
}
5966

@@ -69,6 +76,7 @@ variable "security_ip_list" {
6976

7077
variable "account_password" {
7178
description = "Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines"
79+
type = string
7280
default = ""
7381
}
7482

@@ -84,6 +92,7 @@ variable "backup_period" {
8492
}
8593
variable "backup_time" {
8694
description = "MongoDB 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`. "
95+
type = string
8796
default = "23:00Z-24:00Z"
8897
}
8998
variable "tags" {

modules/mongodb-4.0-wiredtiger/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
#################
44
variable "profile" {
55
description = "The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable. "
6+
type = string
67
default = ""
78
}
89

910
variable "shared_credentials_file" {
1011
description = "This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used. "
12+
type = string
1113
default = ""
1214
}
1315

1416
variable "region" {
1517
description = "The region used to launch this module resources. "
18+
type = string
1619
default = ""
1720
}
1821

@@ -34,16 +37,19 @@ variable "db_instance_storage" {
3437

3538
variable "db_instance_class" {
3639
description = "The specification of the instance. For more information about the value, see https://www.alibabacloud.com/help/doc-detail/57141.htm"
40+
type = string
3741
default = ""
3842
}
3943

4044
variable "name" {
4145
description = " The name of DB instance. It a string of 2 to 256 characters"
46+
type = string
4247
default = ""
4348
}
4449

4550
variable "instance_charge_type" {
4651
description = "The billing method of the instance. Valid values are Prepaid, PostPaid, Default to PostPaid"
52+
type = string
4753
default = "PostPaid"
4854
}
4955

@@ -54,6 +60,7 @@ variable "period" {
5460

5561
variable "zone_id" {
5662
description = "The ID of the zone. You can refer to https://www.alibabacloud.com/help/doc-detail/61933.htm. "
63+
type = string
5764
default = ""
5865
}
5966

@@ -69,6 +76,7 @@ variable "security_ip_list" {
6976

7077
variable "account_password" {
7178
description = "Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines"
79+
type = string
7280
default = ""
7381
}
7482

@@ -84,6 +92,7 @@ variable "backup_period" {
8492
}
8593
variable "backup_time" {
8694
description = "MongoDB 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`. "
95+
type = string
8796
default = "23:00Z-24:00Z"
8897
}
8998
variable "tags" {

modules/mongodb-4.2-wiredtiger/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
#################
44
variable "profile" {
55
description = "The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable. "
6+
type = string
67
default = ""
78
}
89

910
variable "shared_credentials_file" {
1011
description = "This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used. "
12+
type = string
1113
default = ""
1214
}
1315

1416
variable "region" {
1517
description = "The region used to launch this module resources. "
18+
type = string
1619
default = ""
1720
}
1821

@@ -34,16 +37,19 @@ variable "db_instance_storage" {
3437

3538
variable "db_instance_class" {
3639
description = "The specification of the instance. For more information about the value, see https://www.alibabacloud.com/help/doc-detail/57141.htm"
40+
type = string
3741
default = ""
3842
}
3943

4044
variable "name" {
4145
description = " The name of DB instance. It a string of 2 to 256 characters"
46+
type = string
4247
default = ""
4348
}
4449

4550
variable "instance_charge_type" {
4651
description = "The billing method of the instance. Valid values are Prepaid, PostPaid, Default to PostPaid"
52+
type = string
4753
default = "PostPaid"
4854
}
4955

@@ -54,6 +60,7 @@ variable "period" {
5460

5561
variable "zone_id" {
5662
description = "The ID of the zone. You can refer to https://www.alibabacloud.com/help/doc-detail/61933.htm. "
63+
type = string
5764
default = ""
5865
}
5966

@@ -69,6 +76,7 @@ variable "security_ip_list" {
6976

7077
variable "account_password" {
7178
description = "Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines"
79+
type = string
7280
default = ""
7381
}
7482

@@ -84,6 +92,7 @@ variable "backup_period" {
8492
}
8593
variable "backup_time" {
8694
description = "MongoDB 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`. "
95+
type = string
8796
default = "23:00Z-24:00Z"
8897
}
8998
variable "tags" {

0 commit comments

Comments
 (0)