Skip to content

Commit

Permalink
Merge pull request #35093 from bandhan-majumder/Config_Syntax_Docs_Up…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
crw committed May 7, 2024
2 parents f3764ea + 8db0330 commit 81f5232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/docs/language/syntax/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +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.
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.

Expand Down

0 comments on commit 81f5232

Please sign in to comment.