Hi, I’m new to Terraform. To test one feature I’m developing, I have to use azurerm to create one azure resource, so I used multiple providers in the acceptance test.
My code in the acceptance test is like:
provider "azurerm" { subscription_id = your id tenant_id = your id client_id = your id client_secret = your id features {} } resource "azurerm_resource_group" "example" { name = "test" location = "West US" } resource "something_I_work_on" "test" { ... }
Then I got some errors:
testing.go:684: Step 0 error: config is invalid: Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:3 errors occurred: * resource azurerm_key_vault_certificate: ConflictsWith: days_before_expiry configuration block reference (certificate_policy.0.lifetime_action.0.trigger.0.lifetime_percentage) can only be used with TypeList and MaxItems: 1 configuration blocks * resource azurerm_api_management: ConflictsWith: key_vault_id configuration block reference (hostname_configuration.0.proxy.0.certificate) can only be used with TypeList and MaxItems: 1 configuration blocks * resource azurerm_virtual_machine_scale_set: ConflictsWith: managed_disk_type configuration block reference (storage_profile_os_disk.vhd_containers) can only be used with TypeList and MaxItems: 1 configuration blocks
Any idea about where I did wrongly?