Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_api_management_custom_domain times out before finishing #20347

Closed
1 task done
linak-lukasmendez opened this issue Feb 7, 2023 · 2 comments · Fixed by #20348
Closed
1 task done

azurerm_api_management_custom_domain times out before finishing #20347

linak-lukasmendez opened this issue Feb 7, 2023 · 2 comments · Fixed by #20348
Labels
Milestone

Comments

@linak-lukasmendez
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.2.8

AzureRM Provider Version

3.40.0

Affected Resource(s)/Data Source(s)

azurerm_api_management_custom_domain

Terraform Configuration Files

resource "azurerm_api_management" "common" {
  name                = "apim-${var.environment.system_code}-${local.common_resources_name}-${var.environment.location_code}-${var.environment.environment_code}-${var.environment.discriminator}"
  location            = azurerm_resource_group.common.location
  resource_group_name = azurerm_resource_group.common.name

  publisher_name  = var.api_management_service.publisher.name
  publisher_email = var.api_management_service.publisher.email

  sku_name = "${var.api_management_service.sku}_${lower(var.api_management_service.sku) == "consumption" ? "0" : var.api_management_service.capacity}"

  identity {
    type = "SystemAssigned"
  }

  tags = local.common_tags
}

resource "azurerm_key_vault_access_policy" "common" {
  provider     = azurerm.linakcloud_certificate_source

  key_vault_id = data.azurerm_key_vault.linakcloud_certificates.id
  tenant_id    = azurerm_api_management.common.identity[0].tenant_id
  object_id    = azurerm_api_management.common.identity[0].principal_id

  secret_permissions = [
    "Get",
    "List"
  ]
}


resource "azurerm_api_management_custom_domain" "common" {
  count = lower(var.api_management_service.sku) == "consumption" ? 0 : 1

  api_management_id = azurerm_api_management.common.id

  gateway {
    host_name    = lower(var.environment.environment) == "production" ? var.api_management_service.host_name : "${var.environment.environment_code}-${var.api_management_service.host_name}"
    key_vault_id = data.azurerm_key_vault_secret.linakcloud_certificate.versionless_id
  }
}

Debug Output/Panic Output

-

Expected Behaviour

I would expect the custom domain to be created before the timeout period which is 45 minutes today

Actual Behaviour

The custom domain is created, but not within the 45 minutes.

Steps to Reproduce

Make sure that you are using at least the "Basic" tier for your API Management Service.

Important Factoids

No

References

No

@github-actions
Copy link

This functionality has been released in v3.43.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants