connection_string = "pgm-f8z03v853neh87k8.pg.rds.aliyuncs.com" connection_string_prefix = "pgm-f8z03v853neh87k8" create_time = "2024-10-31T02:29:36Z" db_instance_ip_array_attribute = null db_instance_ip_array_name = null db_instance_storage_type = "cloud_essd" db_instance_type ...
connection_string = "pgm-f8z03v853neh87k8.pg.rds.aliyuncs.com" connection_string_prefix = "pgm-f8z03v853neh87k8" create_time = "2024-10-31T02:29:36Z" db_instance_ip_array_attribute = null db_instance_ip_array_name = null db_instance_storage_type = "cloud_essd" db_instance_type ...
file读取指定路径下的文件内容,并将其作为 string 返回。 > file("${path.module}/hello.txt") Hello World jsondecode函数 jsondecode将一个给定的 string 解释为 JSON,返回该字符串的解码结果。 该函数以如下方式将 JSON 值映射到Terraform 语言 type: Terraform 语言的自动类型转换规则意味着你通常不需要担心一...
defaults.regex_replace_chars) # string_label_names are names of inputs that are strings (not list of strings) used as labels string_label_names = ["namespace", "tenant", "environment", "stage", "name"] normalized_labels = { for k in local.string_label_names : k => local.input[k...
jsondecode将一个给定的 string 解释为 JSON,返回该字符串的解码结果。 该函数以如下方式将 JSON 值映射到Terraform 语言 type: Terraform 语言的自动类型转换规则意味着你通常不需要担心一个给定的值到底会产生什么类型,只需以直观的方式使用结果即可。
TypeMap - mapstringinterface{} TypeSet - *schema.Set Required bool 也就我们经常在 API 里说的 参数是否必填,默认 false,当设置为...Optional bool 是否可选的,和 Required 互斥的,不能同时配置 Required 和 Optional,即一个属性(参数)要么必填,要么可选 ForceNew bool 如果设置为...{} 用来...
variable "regions" { type = map(object({ ami_id = string instance_type = string })) default = { us-east-1 = { ami_id = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" } us-west-2 = { ami_id = "ami-0a54c984b9f908c81" instance_type = "t2.micro" } } } 你可以...
Convert resource to data source import{vpcasvpcDS}from"other-terraform-generator-configuration";constvpc=tfg.dataFromResource(vpcDS,null,["cidr_block",["tags","tag"]]); Arguments {string:'str',number:123,boolean:true,stringList:['str1','str2','str3'],numberList:[111,222,333],boolean...
when deploying an aks cluster with microsoft entra id and azure rbac integration, this array parameter contains the list of microsoft entra id group object ids that will have the admin role of the cluster. web_app_routing_enabled : specifies whether the...
We also need to add the 2 new variables: aad_group_name avd_users avd_users will be an array to allow us to pass multiple users. Up to now we have either specified default values for our variables or will pass them during deployment. To make things simpler we will create anenv.tfvars...