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.
More on Providers, Resources and Data Sources
What is a resource block and how is it addressed?BeginnerWhat is the difference between a resource and a data source?BeginnerHow do you configure a provider such as AWS?BeginnerHow do you use the same provider with multiple regions or accounts?IntermediateIn what order does the AWS provider look for credentials?IntermediateWhat does `default_tags` in the AWS provider do and what are its pitfalls?Intermediate