Open
Description
Check for previous/existing GitHub issues
- I have checked for previous/existing GitHub issues
Issue Type?
Bug
(Optional) Module Version
0.18.0
(Optional) Correlation Id
No response
Description
Using vm_additional_capabilities
fails the deployment unless it is null
, because there's an inconsistent typo in the property var.vm_additional_capabilities.hiberation_enabled
.
It fails because the references in the main.*_vm.tf
files are correctly spelling hibernation_enabled
.
To highlight:
hiberation_enabled
vs.
hibernation_enabled
It fails with error:
│ Error: Unsupported attribute
│
│ on .terraform/modules/svm_vm/main.linux_vm.tf line 68, in resource "azurerm_linux_virtual_machine" "this":
│ 68: hibernation_enabled = var.vm_additional_capabilities.hibernation_enabled
│ ├────────────────
│ │ var.vm_additional_capabilities is object with 2 attributes
│
│ This object does not have an attribute named "hibernation_enabled".
The variable expects input like this:
vm_additional_capabilities = {
hiberation_enabled = false
ultra_ssd_enabled = true
}
But it should be this:
vm_additional_capabilities = {
hibernation_enabled = false
ultra_ssd_enabled = true
}
Minimal reproducible example:
main.txt
Activity