|
I am relatively new to Terraform / ACME / Lego, so this doubles as a newcomer DX report. I have been trying to use the I was confident my credentials had access -- the same identity creates With this simple change: @@ -29,12 +46,14 @@ resource "acme_certificate" "some" {
certificate_p12_password = ""
dns_challenge {
- provider = "azuredns"
+ provider = "azure"
config = {
+ LEGO_AZURE_BYPASS_DEPRECATION = "true"
AZURE_CLIENT_ID = local.arm_bridge["client_id"]
AZURE_CLIENT_SECRET = local.arm_bridge["client_secret"]
AZURE_TENANT_ID = local.arm_bridge["tenant_id"]
AZURE_SUBSCRIPTION_ID = data.azurerm_subscription.current.subscription_id
AZURE_RESOURCE_GROUP = var.dns_zone.resource_group_name
AZURE_ZONE_NAME = var.dns_zone.name
}The real problem was immediately surfaced: which lead to @@ -29,12 +46,14 @@ resource "acme_certificate" "some" {
certificate_p12_password = ""
dns_challenge {
- provider = "azuredns"
+ provider = "azure"
config = {
+ LEGO_AZURE_BYPASS_DEPRECATION = "true"
AZURE_CLIENT_ID = local.arm_bridge["client_id"]
AZURE_CLIENT_SECRET = local.arm_bridge["client_secret"]
AZURE_TENANT_ID = local.arm_bridge["tenant_id"]
AZURE_SUBSCRIPTION_ID = data.azurerm_subscription.current.subscription_id
+ ARM_SUBSCRIPTION_ID = data.azurerm_subscription.current.subscription_id
AZURE_RESOURCE_GROUP = var.dns_zone.resource_group_name
AZURE_ZONE_NAME = var.dns_zone.name
}immediately working (This is also because of a "known issue" in vancluever/terraform-provider-acme#428) So the underlying issue: Request: Could zone discovery in PS: I am using https://github.com/vancluever/terraform-provider-acme, but I believe the error originates in lego. Let me know if this should be filed elsewhere. |
Replies: 1 comment 3 replies
|
There are several differences between the 2 implementations. The 2 SDKs don't work in the same way, and I cannot change that. All the available information are displayed when we have them, but in this case there is no information available. |
The new SDK works completely differently, the design is completely different.
The requests are not done in the same order than before because of that.
I'm not a magician: the Azure environment is a configuration hell, the Azure SDK is also a hell to use.
There is neither hidden error nor hidden details: lego displays all the available information inside the errors.