Open jbrmg opened 2 years ago
I have encountered the same issue in the latest release v.0.4.5
# conformity_azure_account.test will be updated in-place
~ resource "conformity_azure_account" "test" {
id = "xxxx-xxxx-xxxxx-xxxx-xxxx"
name = "test"
~ tags = [
- "env",
]
# (3 unchanged attributes hidden)
- settings {
- rule {
- rule_id = "SecurityCenter-020" -> null
- settings {
- enabled = true -> null
- rule_exists = false -> null
- extra_settings {
- name = "complianceStandards" -> null
- regions = [] -> null
- type = "choice-multiple-value" -> null
- values {
- enabled = true -> null
- label = "Azure CIS 1.1.0" -> null
- value = "Azure-CIS-1.1.0" -> null
}
}
}
}
- rule {
- rule_id = "VirtualMachines-004" -> null
- settings {
- enabled = true -> null
- risk_level = "HIGH" -> null
- rule_exists = false -> null
- extra_settings {
- name = "approvedExtensions" -> null
- regions = [] -> null
- type = "multiple-string-values" -> null
- values {
- enabled = false -> null
- value = "AzureDiskEncryptionForLinux" -> null
}
}
}
}
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
Hi,
we face the issue that rule settings are not updated when
terraform apply
is executed (provider version 0.3.9). Here is a description on how to reproduce the issue:conformity_azure_account
resource without rule settingsExample:
Example:
replace
terraform apply
Terraform will detect the manual rule configurations and wants to remove them:
After applying the changes and running
terraform plan
, Terraform will plan the same changes as the manual rule configurations are still present in the backend.The logs indicate that no update request is sent to the backend: