你已经看到了最简单的表达式类型,如字符串(如"ami-0c55b159cbfafe1f0")和数字(如5)。 引用(reference)是一种特别有用的表达式类型,它使用户可以从代码的其他部分访问该值。如果要访问安全组资源的ID,需要使用资源属性引用(resource attribute reference),该引用的语法如下。 当在一个资源内引用另一个资源时,会创...
resource_group_name=$(terraform output -raw resource_group_name) 使用JMESPath查询来运行 az vm list,以显示在资源组中创建的虚拟机的名称。 Azure CLI az vm list\--resource-group$resource_group_name\--query"[].{\"VM Name\":name}"-otable ...
resource "alicloud_cs_managed_kubernetes" "default" { name = local.k8s_name_terway # Kubernetes集群名称。 cluster_spec = var.cluster_spec # 创建Pro版集群。 vswitch_ids = split(",", join(",", alicloud_vswitch.vswitches.*.id)) # 节点池所在的vSwitch。指定一个或多个...
resource "aws_network_interface" "default" { subnet_id = module.us_east_1b_public_subnets.subnet_ids[0] source_dest_check = false tags = module.network_interface_label.id } module "us_east_1b_private_subnets" { source = "cloudposse/named-subnets/aws" # Cloud Posse recommends pinning ...
You can use the existingeip moduleto create several EIP instances and associate them with other resources one-click, like ECS instances, SLB, Nat Gateway and so on. Argument Reference The following arguments are supported: name- (Deprecated) It has been deprecated from version 1.126.0 and using...
Only │ pre-existing objects can be imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use │ "terraform apply" to create a new remote object for this resource. ╵ Releasing state lock. This may take a few moments.....
resource "jetstream_kv_entry" "test_entry" { bucket = "TEST" key = "foo" value = "bar" } Attribute Reference bucket- (required) The name of the KV bucket key- (required) The entry key value- (required) The entry value Import existing JetStream resources ...
More information can be found in the terraform resourceefs_access_point.map(map(map(any))){}no additional_security_group_rulesA list of Security Group rule objects to add to the created security group, in addition to the ones this module normally creates. (To suppress the module's rules, ...
“CacheDisk”“ResourceDisk” DiskEncryptionSet参数 展开表 名字描述价值 身份证 资源ID 字符串 DiskEncryptionSettings 展开表 名字描述价值 diskEncryptionKey 的 指定磁盘加密密钥的位置,该密钥是 Key Vault 机密。 KeyVaultSecretReference 启用 指定是否应在虚拟机上启用磁盘加密。 布尔 密钥加密密钥 指定Key Va...
This imports an existing CML2 lab YAML topology file as a Terraform lifecycle resource. This is the “one-stop” solution, defining all nodes, links and interfaces in one go. In addition, you can use Terraform templating to replace properties of the imported lab (see below). Import-mode ex...