File tree Expand file tree Collapse file tree 9 files changed +21
-14
lines changed
examples-not-working/dapr Expand file tree Collapse file tree 9 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ list(object({
202202 volumeName = optional(string)
203203 })))
204204 })))
205- revisionSuffix = optional(string)
205+ revisionSuffix = optional(string, null )
206206 scale = optional(object({
207207 maxReplicas = optional(number)
208208 minReplicas = optional(number)
@@ -328,6 +328,14 @@ Type: `map(string)`
328328
329329Default: ` {} `
330330
331+ ### <a name =" input_user_identity_resource_id " ></a > [ user\_ identity\_ resource\_ id] ( #input\_ user\_ identity\_ resource\_ id )
332+
333+ Description: The managed identity definition for this resource.
334+
335+ Type: ` string `
336+
337+ Default: ` "" `
338+
331339### <a name =" input_workload_profile_name " ></a > [ workload\_ profile\_ name] ( #input\_ workload\_ profile\_ name )
332340
333341Description: Workload profile name to pin for container app execution. If not set, workload profiles are not used.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ module "container_app" {
6868 image = "mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"
6969 name = "containerapps-helloworld"
7070 resources = {
71- cpu = 0.25
71+ cpu = " 0.25"
7272 memory = "0.5Gi"
7373 }
7474 }]
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module "container_app" {
6262 image = " mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"
6363 name = " containerapps-helloworld"
6464 resources = {
65- cpu = 0.25
65+ cpu = " 0.25"
6666 memory = " 0.5Gi"
6767 }
6868 }]
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ resource "azapi_resource" "container_app" {
1010 parent_id = data. azurerm_resource_group . rg . id
1111 location = local. location
1212 tags = var. tags
13- # identity {
14- # type = var.user_identity_resource_id == "" ? "SystemAssigned" : "SystemAssigned, UserAssigned"
15- # identity_ids = var.user_identity_resource_id == "" ? [] : [var.user_identity_resource_id]
16- # }
13+ identity {
14+ type = var. user_identity_resource_id == " " ? " SystemAssigned" : " SystemAssigned, UserAssigned"
15+ identity_ids = var. user_identity_resource_id == " " ? [] : [var . user_identity_resource_id ]
16+ }
1717
1818 body = jsonencode ({
1919 properties = {
Original file line number Diff line number Diff line change @@ -15,12 +15,11 @@ variable "tags" {
1515 default = {}
1616}
1717
18- # # fails - might be related to https://github.com/Azure/ResourceModules/issues/2391 ?
19- # variable "user_identity_resource_id" {
20- # type = string
21- # description = "The managed identity definition for this resource."
22- # default = ""
23- # }
18+ variable "user_identity_resource_id" {
19+ type = string
20+ description = " The managed identity definition for this resource."
21+ default = " "
22+ }
2423
2524variable "container_app_environment_resource_id" {
2625 type = string
@@ -188,7 +187,7 @@ variable "container_apps" {
188187 volumeName = optional (string )
189188 })))
190189 })))
191- revisionSuffix = optional (string )
190+ revisionSuffix = optional (string , null )
192191 scale = optional (object ({
193192 maxReplicas = optional (number )
194193 minReplicas = optional (number )
You can’t perform that action at this time.
0 commit comments