File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 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- }
41
52data "alicloud_adb_zones" "default" {}
63
74data "alicloud_vpcs" "default" {
85 name_regex = " ^default-NODELETING$"
96}
107data "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 ]
1310}
1411
1512module "adb_example" {
1613 source = " ../.."
1714
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
2118 db_cluster_category = " Cluster"
2219 db_node_class = " C8"
2320 db_node_count = 1
File renamed without changes.
You can’t perform that action at this time.
0 commit comments