From 010778e13dc7da65e4d2e36814b22a6d05310d90 Mon Sep 17 00:00:00 2001 From: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:02:12 +0530 Subject: [PATCH 1/3] Update configuration.mdx Added information about labels "aws_instance" and "example" in the resource. --- website/docs/language/syntax/configuration.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/docs/language/syntax/configuration.mdx b/website/docs/language/syntax/configuration.mdx index 114249876a26..ea8311f00898 100644 --- a/website/docs/language/syntax/configuration.mdx +++ b/website/docs/language/syntax/configuration.mdx @@ -76,6 +76,10 @@ resource "aws_instance" "example" { A block has a _type_ (`resource` in this example). Each block type defines how many _labels_ must follow the type keyword. The `resource` block type expects two labels, which are `aws_instance` and `example` in the example above. +First label `aws_instance` is the `resource` type provided by AWS provider in Terraform and +second label `example` is an arbitrary name given to this particular instance of the `aws_instance` resource. +In Terraform, we can have multiple instances of the same resource type. And we differentiate +them by giving each instance a unique name. A particular block type may have any number of required labels, or it may require none as with the nested `network_interface` block type. From 7b0f04ceb0c34210b2ad18a278f9f4914cf51178 Mon Sep 17 00:00:00 2001 From: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:09:17 +0530 Subject: [PATCH 2/3] Update configuration.mdx Updated information about labels "aws_instance" and "example" in the block resource type . --- website/docs/language/syntax/configuration.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/language/syntax/configuration.mdx b/website/docs/language/syntax/configuration.mdx index ea8311f00898..f7a8473d89ff 100644 --- a/website/docs/language/syntax/configuration.mdx +++ b/website/docs/language/syntax/configuration.mdx @@ -77,8 +77,8 @@ A block has a _type_ (`resource` in this example). Each block type defines how many _labels_ must follow the type keyword. The `resource` block type expects two labels, which are `aws_instance` and `example` in the example above. First label `aws_instance` is the `resource` type provided by AWS provider in Terraform and -second label `example` is an arbitrary name given to this particular instance of the `aws_instance` resource. -In Terraform, we can have multiple instances of the same resource type. And we differentiate +second label `example` is an arbitrary name given to this particular instance of the `aws_instance` of block `resource`. +In Terraform, we can have multiple instances of the same block type (`resource`). And we differentiate them by giving each instance a unique name. A particular block type may have any number of required labels, or it may require none as with the nested `network_interface` block type. From 158e9a6e311746138d69fd36bd09d49cedfe0611 Mon Sep 17 00:00:00 2001 From: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> Date: Wed, 8 May 2024 00:45:04 +0530 Subject: [PATCH 3/3] Update website/docs/language/syntax/configuration.mdx Fixed grammar and style issues. Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com> --- website/docs/language/syntax/configuration.mdx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/website/docs/language/syntax/configuration.mdx b/website/docs/language/syntax/configuration.mdx index f7a8473d89ff..2ca57fe5bdba 100644 --- a/website/docs/language/syntax/configuration.mdx +++ b/website/docs/language/syntax/configuration.mdx @@ -76,10 +76,7 @@ resource "aws_instance" "example" { A block has a _type_ (`resource` in this example). Each block type defines how many _labels_ must follow the type keyword. The `resource` block type expects two labels, which are `aws_instance` and `example` in the example above. -First label `aws_instance` is the `resource` type provided by AWS provider in Terraform and -second label `example` is an arbitrary name given to this particular instance of the `aws_instance` of block `resource`. -In Terraform, we can have multiple instances of the same block type (`resource`). And we differentiate -them by giving each instance a unique name. +The `aws_instance` label is specific to the AWS provider. It specifies the `resource` type that Terraform provisions when you apply the configuration. The second label is an arbitrary name that you can add to the particular instance of the resource. You can create multiple instances of the same block type and differentiate them by giving each instance a unique name. In this example, the Terraform configuration author assigned the `example` label to this instance of the `aws_instance` resource. A particular block type may have any number of required labels, or it may require none as with the nested `network_interface` block type.