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

Secrets cannot be removed from azurerm_container_app #24945

Closed
1 task done
GurliGebis opened this issue Feb 20, 2024 · 2 comments · Fixed by #25743
Closed
1 task done

Secrets cannot be removed from azurerm_container_app #24945

GurliGebis opened this issue Feb 20, 2024 · 2 comments · Fixed by #25743

Comments

@GurliGebis
Copy link

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 and review the contribution guide to help.

Terraform Version

1.7.3

AzureRM Provider Version

3.90.0

Affected Resource(s)/Data Source(s)

azurerm_container_app

Terraform Configuration Files

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_log_analytics_workspace" "example" {
  name                = "acctest-01"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "PerGB2018"
  retention_in_days   = 30
}

resource "azurerm_container_app_environment" "example" {
  name                       = "Example-Environment"
  location                   = azurerm_resource_group.example.location
  resource_group_name        = azurerm_resource_group.example.name
  log_analytics_workspace_id = azurerm_log_analytics_workspace.example.id
}
resource "azurerm_container_app" "example" {
  name                         = "example-app"
  container_app_environment_id = azurerm_container_app_environment.example.id
  resource_group_name          = azurerm_resource_group.example.name
  revision_mode                = "Single"

# Try and remove this after it has been applied.
  secret {
    name  = "dummy"
    value = "dummy"
  }

  template {
    container {
      name   = "examplecontainerapp"
      image  = "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"
      cpu    = 0.25
      memory = "0.5Gi"
    }
  }
}

Debug Output/Panic Output

│ Error: cannot remove secrets from Container Apps at this time due to a limitation in the Container Apps Service. Please see `https://github.com/microsoft/azure-container-apps/issues/395` for more details
│
│   with module.container-apps.azurerm_container_app.api,
│   on modules\container-apps\container-apps.tf line 46, in resource "azurerm_container_app" "api":
│   46: resource "azurerm_container_app" "api" {

Expected Behaviour

Since the microsoft/azure-container-apps#395 issue now has been fixed, this restriction should be removed.

Actual Behaviour

The block is still in place, even though the upstream API has been fixed.

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@DrizzlyOwl
Copy link

Still blocked by this in 3.99.0

@mpigram1
Copy link

I'm also facing the same issue on 3.100.0... This needs to be addressed as it's causing a lot of pain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants