[ BUG ] Dynamic attribute block attempts to add an empty block when using map(string) #35010
Labels
bug
new
new issue not yet triaged
v1.7
Issues (primarily bugs) reported against v1.7 releases
waiting for reproduction
unable to reproduce issue without further information
waiting-response
An issue/pull request is waiting for a response from the community
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
Terraform should not try to add an empty block if the foreach is set to empty.
Actual Behavior
Empty block is added.
Steps to Reproduce
Run
terraform plan
with the above config.Additional Context
This was brought up before here: #24496
I bring this up as this is not a purely cosmetic thing in the github providers case (which errors out if you try to add an empty block) so I believe this should be fixed for those instances where a provider doesn't allow an empty block.
References
The text was updated successfully, but these errors were encountered: