type = string description = "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 = [] description = "List of the Security Group, it must be...
如果进一步修改CIDR值,我们可以声明一个string列表用于存储不同VPC的CIDR值,然后通过 count.index 去访问列表元素。 variable "name_list" { 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"...
type = string } variable "availability_zone_names" { type = list(string) default = ["us-west-1a"] } variable "docker_ports" { type = list(object({ internal = number external = number protocol = string })) default = [ { internal = 8300 external = 8300 protocol = "tcp" } ] } ...
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 `...
由于腾讯云的 Bucket 名称中包含了使用者的 APP ID,所以这里还使用了 tencentcloud_user_info data 块,用来获取当前用户的 APP ID,同时为了避免 Bucket 名称重复,这里使用了 random_string resource 块用来生成一个随机数。 最后,就可以执行这些代码了。
如果C为list(string):Json、CommaDelimitedList、String、ALIYUN::OOS::Parameter::Value或ALIYUN::OOS::SecretParameter::Value。 如果C为其他类型:Json、String、ALIYUN::OOS::Parameter::Value或ALIYUN::OOS::SecretParameter::Value。 string String、ALIYUN::OOS::Parameter::Value或ALIYUN::OOS::SecretParame...
-list=false- 不列出格式不一致的文件 // Don't list the files containing formatting inconsistencies $ terraform fmt -list=false -diff- 显示格式更改的差异 // Display diffs of formatting changes $ terraform fmt -diff 1、force-unlock terraform force-unlock用于删除当前配置状态上的锁,并不会修改用户的...
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=string ttl=number records=list(string)}))} DNS 只是一个简单的示例,但仍有更多机会利用供应商之间的通用元素。 一个更复杂的例子是部署Kubernetes集群,现在有许多不同的供应商提供托管的 Kubernetes 集群服务,甚至还有更多运行 Kubernetes 的方法。
type = string description = "Set Tencent Cloud secret key." sensitive = true nullable = false } 其中variable 后面的是变量名称,type 指定变量类型,description 用来描述变量的用途,sensitive 用来指定变量是不是敏感信息,nullable 用来指定变量是不是可以为空。