Azure / terraform-azure-container-apps

A Terraform module to deploy a container app in Azure
https://github.com/Azure/terraform-azure-container-apps
35 stars 22 forks source link

Support for existing container apps environment #37

Closed davidkarlsen closed 7 months ago

davidkarlsen commented 7 months ago

Is there an existing issue for this?

Description

It would be good to create the container apps conditionally, and only if user does not provide a reference to an existing container apps environment.

New or Affected Resource(s)/Data Source(s)

azurerm_container_app_environment

Potential Terraform Configuration

new nullable input var `container_app_environment`, if non-null, use this, and use a

count = var.container_app_environment == 0 ? 1

on the one in the module.

References

No response

lonegunmanb commented 7 months ago

I like this idea, especially now we're still at v0, which means we can introduce any breaking changes as we like.