validation { # regex(...) 如果匹配失败将返回错误 condition = can(regex("([a-zA-Z])", var.iam_user_name)) error_message = "Incorrect user name. Please check whether it contains upper and lower case letters." } } 如果condition 的结果为false,Terraform 将产生一条错误消息,其内容为 error...
__contains__('FromPort') and rule.__contains__('ToPort'): if isinstance(rule['FromPort'], int) and isinstance(rule['ToPort'], int): if int(rule['FromPort']) == int(self.port) and int(rule['ToPort']) == int(self.port): if 'CidrIp' in rule.keys() and rule['CidrIp']...
url = "https://checkpoint-api.hashicorp.com/v1/check/terraform" # Optional request headers request_headers = { Accept = "application/json" } lifecycle { postcondition { condition = contains([201, 204], self.status_code) error_message = "Status code invalid" } } } 3.4.3 前置条件 data ...
复制 data"http""example"{url ="https://checkpoint-api.hashicorp.com/v1/check/terraform"#Optional...
condition= contains([201,204], self.status_code) error_message="Status code invalid"} } } 3.4.3 前置条件 data"http""example"{ url="https://checkpoint-api.hashicorp.com/v1/check/terraform"# Optional request headers request_headers={ ...
type = string description = "This name is used for iam user to log in." validation { # regex(...) 如果匹配失败将返回错误 condition = can(regex("([a-zA-Z])", var.iam_user_name)) error_message = "Incorrect user name. Please check whether it contains upper and lower case letters....
url = "https://checkpoint-api.hashicorp.com/v1/check/terraform" method = "POST" # Optional request body request_body = "request body" } # variable "gitName" { type = string default = "redhatxl" } # output "resp" { value = { ...
data "http" "example" { url = "https://checkpoint-api.hashicorp.com/v1/check/terraform" # Optional request headers request_headers = { Accept = "application/json" } lifecycle { postcondition { condition = contains([201, 204], self.status_code) error_message = "Status code invalid" } ...
TFE TLS CA bundle- Ca bundle file in PEM format, base64-encoded into a string, and stored as a secret Refer to theprereqs referencefor more details on how the secrets should be created and stored. Compute One of the following mechanisms for shell access to TFE GCE VM instances: ...
[for s in local.all_instance_types_in_zones : toset(s)] # 计算所有可用区间共有的实例类型 common_instance_types = [for element in local.sets[0]: element if length([for set in local.sets: set if contains(set, element)]) == length(local.sets)] } # 查询用于获取支持增强型网关NAT的...