Attribute reference

Hi,
I’m asking this question after finishing TF for Beginners > Terraform with AWS > Lab DynamoDB:

In the last question where we create an item in the table, we refer to the attributes (name & hash_key) of the resource aws_dynamodb_table.

I understand the syntax for referring an attribute of one resource in another is:

some_variable = <resource_type>.<resource_name>.<attribute_name>

In his case, aws_dynamodb_table_item is referring two attributes “name” and “hash_key” of the resource aws_dynamodb_table.

However, in the terraform documentation, the attributes “name” and “hash_key” doesn’t exist for the resource aws_dynamodb_table! How does it even work then?

Reference: Terraform Registry

Hello, @Prasad-Devaraj
I checked from the link you shared and I see it’s there.