Interview Prep/Terraform/Providers, Resources and Data Sources

How do nested blocks differ from map or list attributes in resource syntax?

IntermediateConceptProviders, Resources and Data Sources
Answer

Nested blocks (ingress { ... }) are repeatable, schema-defined sub-objects; attributes take = and an expression. Some providers moved from blocks to attributes, which changes syntax. Only blocks can be generated with dynamic; for attribute-style lists you use for expressions instead.

All Terraform questions Roadmap: Terraform

More on Providers, Resources and Data Sources