cloud-validation-framework icon indicating copy to clipboard operation
cloud-validation-framework copied to clipboard

Terraform Resources property type is not being preserved in snapshot during compliance

Open rezoan opened this issue 4 years ago • 0 comments

Consider following Terraform Resource Template:

resource azurerm_app_service "app-service1" {
  app_service_plan_id = "test_azurerm_app_service_plan_id"
  location            = "test_location"
  name                = "test_app_service_name"
  resource_group_name = "test_rg"
  https_only          = false
  site_config {
    min_tls_version = "1.1"
  }
  tags = {
    git_file             = "terraform/azure/app_service.tf"
  }
}

While generating the snapshot file via prancer the min_tls_version = "1.1" become min_tls_version = 1.1 in snapshot json file. The string value "1.1" being converted to float 1.1 . Its unexpected and type should be preserved.

rezoan avatar Aug 26 '21 16:08 rezoan