type = string description = "The id of your VPC" } variable "subnet_ids" { type = list(string) description = "List of subnets sorted by availability zone in your VPC" } variable "security_groups" { type = list(string) default = [] description = "List of The Security group IDs" }...
terraform state list:列出当前state中的所有资源 state list命令会按照<资源类型>.<资源名称>的格式列出当前state中存在的所有资源(包括datasource),例如: $terraform state listdata.alicloud_slbs.defaultalicloud_vpc.defaultalicloud_vswitch.this terraform state show:展示某一个资源的属性 state show命令按照Key-...
variable"instance_type"{type= stringdescription ="The EC2 instance type"}variable"vpc_id"{type= stringdescription ="The id of VPC"}variable"subnet_ids"{type= list(string)description ="List of subnets sorted by availability zone in your VPC"}variable"security_groups"{type= list(string)default...
network_id"` SubnetID types.String `tfsdk:"subnet_id"` IsAuditLog types.String `tfsdk:"is_audit_log"` Status types.String `tfsdk:"status"` CTime types.String `tfsdk:"ctime"` VipData types.List `tfsdk:"vip_data"` MasterNum types.List `...
data "http" "my" { url = "https://ifconfig.me" } resource "databricks_workspace_conf" "this" { custom_config = { "enableIpAccessLists": "true" } } resource "databricks_ip_access_list" "only_me" { label = "only ${data.http.my.body} is allowed to access workspace" list_type ...
如果未明确指定变量类型,则默认为 string。建议开发者显式指定变量类型,这样可以方便地提醒用户如何使用该模块,并允许Terraform在使用错误的类型后返回有用的错误信息。Terraform 输入变量支持的类型有: 基本类型:string,number,bool 复合类型:list(),set(),map() ...
description = "List of existing vswitch id." type = list(string) default = [] } variable "vswitch_cidrs" { description = "List of cidr blocks used to create several new vswitches when 'vswitch_ids' is not specified." type = list(string) ...
type = list(string) description ="机器组包含的机器IP"default = ["10.0.0.1","10.0.0.2"] }provider"alicloud"{ region = var.region }resource"random_integer""default"{ min =10000max =99999}# 项目(Project)resource"alicloud_log_project""example"{ ...
map (...):映射类型,以键值对 (key-value pair) 的方式组合起来的数据元素集合,其中 key 为 string 类型,对应的值可以是 string,number,bool 等类型,且所有元素的值必须是同一类型。 list (...):列表类型,具有同类型的数据元素集合,元素可以是基本类型和块类型,列表索引从 0 开始。
type = list(string) default = ["vpc_demo1", "vpc_demo2"] } variable "cidr_list" { type = list(string) default = ["192.168.0.0/16", "172.16.0.0/16"] } resource "volcengine_vpc" "vpcs" { count = 2 name = var.name_list[count.index] cidr = var.cidr_list[count.index] } f...