cs1*_*193 12 amazon-web-services terraform hcl infrastructure-as-code
我在 Github 的几个terraform代码中发现了一个模式。
resource "aws_vpc" "this"
Run Code Online (Sandbox Code Playgroud)
我想知道关键字如何this提供相对于命名资源的特殊优势。我找不到有关关键字的Hashicorp文档this。
https://github.com/cloudposse/terraform-aws-vpn-connection/blob/master/context.tf
Mar*_*cin 16
不,在 TF 语法或处理方面没有什么特别之处。this它只是一个名称,可能表明您的设置中只有一个 VPC。但这不是 TF 机制强制执行的。其他常见名称是main或只是vpc。