Closed lonegunmanb closed 7 months ago
greenfield
1.6.0
16332f4b8659ac7f9a1b4a62712575af1daca1ac
3.75.0
azurerm_container_app_environment
resource "random_id" "rg_name" { byte_length = 8 } resource "random_id" "env_name" { byte_length = 8 } resource "random_id" "container_name" { byte_length = 4 } resource "azurerm_resource_group" "test" { location = var.location name = "example-container-app-${random_id.rg_name.hex}" } locals { counting_app_name = "counting-${random_id.container_name.hex}" dashboard_app_name = "dashboard-${random_id.container_name.hex}" } module "container_apps" { source = "../.." resource_group_name = azurerm_resource_group.test.name location = var.location container_app_environment_name = "example-env-${random_id.env_name.hex}" container_apps = { counting = { name = local.counting_app_name revision_mode = "Single" template = { containers = [ { name = "countingservicetest1" memory = "0.5Gi" cpu = 0.25 image = "docker.io/hashicorp/counting-service:0.0.2" env = [ { name = "PORT" value = "9001" } ] }, ] } ingress = { allow_insecure_connections = true external_enabled = true target_port = 9001 traffic_weight = { latest_revision = true percentage = 100 } } }, dashboard = { name = local.dashboard_app_name revision_mode = "Single" template = { containers = [ { name = "testdashboard" memory = "1Gi" cpu = 0.5 image = "docker.io/hashicorp/dashboard-service:0.0.4" env = [ { name = "PORT" value = "8080" }, { name = "COUNTING_SERVICE_URL" value = "http://${local.counting_app_name}" } ] }, ] } ingress = { allow_insecure_connections = false target_port = 8080 external_enabled = true traffic_weight = { latest_revision = true percentage = 100 } } identity = { type = "SystemAssigned" } }, } log_analytics_workspace_name = "testlaws" }
no
TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: ╷ TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ Error: Missing required argument TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ with module.container_apps.azurerm_container_app_environment.container_env, TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ on ../../main.tf line 25, in resource "azurerm_container_app_environment" "container_env": TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ 25: internal_load_balancer_enabled = var.container_app_environment_internal_load_balancer_enabled TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ "internal_load_balancer_enabled": all of TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: │ `infrastructure_subnet_id,internal_load_balancer_enabled` must be specified TestExamplesStartup 2023-11-07T01:35:30Z command.go:185: ╵
No response
Is there an existing issue for this?
Greenfield/Brownfield provisioning
greenfield
Terraform Version
1.6.0
Module Version
16332f4b8659ac7f9a1b4a62712575af1daca1ac
AzureRM Provider Version
3.75.0
Affected Resource(s)/Data Source(s)
azurerm_container_app_environment
Terraform Configuration Files
tfvars variables values
Debug Output/Panic Output
Expected Behaviour
No response
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response