File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- variable "name" {
2
- default = " terraform-example"
3
- }
4
1
5
2
data "alicloud_adb_zones" "default" {}
6
3
7
4
data "alicloud_vpcs" "default" {
8
5
name_regex = " ^default-NODELETING$"
9
6
}
10
7
data "alicloud_vswitches" "default" {
11
- vpc_id = data. alicloud_vpcs . default . ids . 0
12
- zone_id = data. alicloud_adb_zones . default . ids . 0
8
+ vpc_id = data. alicloud_vpcs . default . ids [ 0 ]
9
+ zone_id = data. alicloud_adb_zones . default . ids [ 0 ]
13
10
}
14
11
15
12
module "adb_example" {
16
13
source = " ../.."
17
14
18
- vswitch_id = data. alicloud_vswitches . default . vswitches . 0 . id
19
- availability_zone = data. alicloud_vswitches . default . vswitches . 0 . zone_id
20
- db_cluster_version = " 3.0 "
15
+ vswitch_id = data. alicloud_vswitches . default . vswitches [ 0 ] . id
16
+ availability_zone = data. alicloud_vswitches . default . vswitches [ 0 ] . zone_id
17
+ db_cluster_version = null
21
18
db_cluster_category = " Cluster"
22
19
db_node_class = " C8"
23
20
db_node_count = 1
File renamed without changes.
You can’t perform that action at this time.
0 commit comments