terraform 资源创建 - this 关键字
terraform resource creation - this keyword
我在 Github 的几个 terraform
代码中遇到了一个模式。
resource "aws_vpc" "this"
我想知道关键字 this
如何提供优于命名资源的特殊优势。我找不到关于 this
关键字的 Hashicorp 文档。
https://github.com/cloudposse/terraform-aws-vpn-connection/blob/master/context.tf
不,关于 this
在 TF 语法或处理方面没有什么特别之处。它只是一个名称,可能表明您的设置中只有一个 VPC。但这不是由 TF 机制强制执行的。其他常用名称是 main
或 vpc
.
我在 Github 的几个 terraform
代码中遇到了一个模式。
resource "aws_vpc" "this"
我想知道关键字 this
如何提供优于命名资源的特殊优势。我找不到关于 this
关键字的 Hashicorp 文档。
https://github.com/cloudposse/terraform-aws-vpn-connection/blob/master/context.tf
不,关于 this
在 TF 语法或处理方面没有什么特别之处。它只是一个名称,可能表明您的设置中只有一个 VPC。但这不是由 TF 机制强制执行的。其他常用名称是 main
或 vpc
.