You can reference a resource created with for_each using a Splat (*) expression.
How does Terraform determine dependencies between resources?
Which parameters does terraform import require? (Choose two.)
Once a new Terraform backend is configured with a Terraform code block, which command(s) is (are) used to migrate the state file?
What does this code do?
The terraform.tfstate file always matches your currently built infrastructure.