terraform-provider-acme
terraform-provider-acme copied to clipboard
Azurerm 4.4.0 : dependencies update for github.com/hashicorp/go-azure-sdk
Hello Need som help on an error I am getting when using the acme provider with Terraform, deploying to Azure The error I get is the same as in "azuredns: could not find zone (from discovery) #428." But I have values in the dns challenge config block like this: config = {
AZURE_AUTH_METHOD = "env"
AZURE_ENVIRONMENT = "public"
AZURE_CLIENT_ID = data.azurerm_client_config.current.client_id
AZURE_SUBSCRIPTION_ID = "11111111-1111-1111-1111-111111111111"
AZURE_TENANT_ID = data.azurerm_client_config.current.tenant_id
AZURE_RESOURCE_GROUP = data.azurerm_resource_group.rg.name
AZURE_ZONE_NAME = each.value.name
AZURE_TTL = 300
}
The service principal running the terraform plan and apply has the correct rbac on subscription(contributor), resource group(dns zone admin) and dns zones.
I turned on debuging in Terraform and I notice this warning: 2024-10-26T12:25:48.119Z [WARN] Provider "registry.terraform.io/vancluever/acme" produced an invalid plan for acme_certificate.cert["domain_name"], but we are tolerating it because it is using the legacy plugin SDK.
I then started to look through the azurerm changelog:https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md. version 4.4.0 (october 04,2024) there is a dependencies update for github.com/hashicorp/go-azure-sdk
I am no programer, but could it be that the acme provider needs to use the new sdk?
I have been strugeling with this for the last two days and have tried everything, but still no luck I am on the following versions: Terraform: 1.9.8 Acme: 2.26.0 Azurerm: 4.7.0 (started at 3.166.0)
Here is the error message that Terraform gives me: Error: error creating certificate: error: one or more domains had a problem: │ [domain.com] [domain.com] acme: error presenting token: 2 errors occurred: │ * rpc error: code = Unknown desc = azuredns: could not find zone (from discovery): domain.com │ * error encountered while presenting token for DNS challenge: rpc error: code = Unknown desc = azuredns: could not find zone (from discovery): domain.com
Regards Kjetil