azureterraformazure-static-web-appazure-rm

How to successfully create a static web app using Terraform apply?


I have a terraform configuration file that defines a azurerm_static_web_app. When I apply this template, the resource is created and I can successfully deploy a SWA; however, the the console seems to get stuck and the process never seems to finish.

I end up with this. Yes, it's doing the same for a linux web app too... azurerm static web app: Still creating...

Ultimately, I'm asking for ideas and suggestions as to what could be causing this and how to fix it.

Here is the terraform configuration:

resource "azurerm_static_web_app" "res-503" {
  location            = "westeurope"
  name                = "swa-${var.instance_name}"
  resource_group_name = azurerm_resource_group.res-0.name
  sku_size            = "Standard"
  sku_tier            = "Standard"
  depends_on = [
    azurerm_resource_group.res-0
  ]
}

Solution

  • Same thing here. The resource is being created, but Terraform is stuck. Upgrading to 4.38.1 fixes it.

     azurerm = {
          source  = "hashicorp/azurerm"
          version = "=4.38.1"
        }