From 3f51ecf138282c4f00399c341ac118970cb58660 Mon Sep 17 00:00:00 2001 From: Christian Adamini Date: Tue, 24 Oct 2023 23:22:41 +0200 Subject: [PATCH] Update website/docs/language/resources/syntax.mdx Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com> --- website/docs/language/resources/syntax.mdx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/website/docs/language/resources/syntax.mdx b/website/docs/language/resources/syntax.mdx index 6b9391efb1..e6b861aadc 100644 --- a/website/docs/language/resources/syntax.mdx +++ b/website/docs/language/resources/syntax.mdx @@ -20,12 +20,11 @@ For information about how Terraform manages resources after applying a configura ## Resource Syntax -A "resource" block declares a resource of a specific type -with a specific local name. The name is used to refer to this resource -in the same Terraform module but has no meaning outside that module's scope. +A `resource` block declares a resource of a specific type +with a specific local name. Terraform uses the name when referring to the resource +in the same module, but it has no meaning outside that module's scope. -The resource type ("aws_instance") and name ("Web") together must be unique within a module because they -serve as an identifier for a given resource. +In the following example, the `aws_instance` resource type is named `web`. The resource type and name must be unique within a module because they serve as an identifier for a given resource. ```hcl resource "aws_instance" "web" {