I came across a pattern in couple of terraform
code in Github.
resource "aws_vpc" "this"
I wanted to know how keyword this
provides a particular advantage over a named resource. I can't find a Hashicorp documentation on this
keyword.
https://github.com/cloudposse/terraform-aws-vpn-connection/blob/master/context.tf
No, there is nothing special about this
in terms of TF syntax or handling. Its just a name that may indicate that you have only one VPC in your setup. But this is not enforced by TF mechanism. Other common names are main
or just vpc
.