extra_config
: doesn't work with dynamic blocks
#2156
Labels
Milestone
extra_config
: doesn't work with dynamic blocks
#2156
Community Guidelines
Terraform
v1.7.1
Terraform Provider
v2.6.1
VMware vSphere
v7
Description
The
extra_config
block doesn't work withDynamic Block
expression. Using for_each under dynamic "extra_config" is not working as expected. This prevents customers from dynamically setting extra_config values to VMs.Affected Resources or Data Sources
vsphere_virtual_machine
Terraform Configuration
The code block is like this:
Debug Output
n/a
Panic Output
No response
Expected Behavior
terraform plan
should be executed successfullyActual Behavior
When using the resource
vsphere_virtual_machine
and settingextra_config
as a dynamic block. When configuringfor_each = var.is_windows_image ? [] : [1}}] with a {{content block
, it errors out withError: Unsupported block type
after executing aterraform plan
. Error outputs:Steps to Reproduce
using the resource
vsphere_virtual_machine
and setextra_config
as a dynamic block.Environment Details
No response
Screenshots
No response
References
#GH-1346
The text was updated successfully, but these errors were encountered: