From ebc12110d213ec01a906f4ccba26de7adc318aa2 Mon Sep 17 00:00:00 2001 From: "992735020@qq.com" <992735020@qq.com> Date: Tue, 9 Nov 2021 10:47:11 +0800 Subject: [PATCH] add param mode --- main.tf | 1 + variables.tf | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 794bd42..fc70055 100644 --- a/main.tf +++ b/main.tf @@ -17,5 +17,6 @@ resource "alicloud_adb_cluster" "this" { db_node_storage = var.db_node_storage pay_type = var.pay_type vswitch_id = var.vswitch_id + mode = var.mode } diff --git a/variables.tf b/variables.tf index c47f312..091c397 100644 --- a/variables.tf +++ b/variables.tf @@ -91,4 +91,10 @@ variable "vswitch_id" { description = "VSwitch variables, if vswitch_id is empty, then the net_type = classic." type = string default = "" -} \ No newline at end of file +} + +variable "mode" { + description = "The mode of the cluster.." + type = string + default = "flexible" +}