Skip to content

Commit 8fb986b

Browse files
author
Artem Vovchenko
committed
fix: update code for usage of user assigned identity
1 parent 4d0e073 commit 8fb986b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ resource "azurerm_container_group" "this" {
1717
dynamic "image_registry_credential" {
1818
for_each = var.image_registry_credential
1919
content {
20-
server = image_registry_credential.value.server
21-
username = image_registry_credential.value.username
22-
password = image_registry_credential.value.password
20+
server = image_registry_credential.value.server
21+
username = image_registry_credential.value.username
22+
password = image_registry_credential.value.password
23+
user_assigned_identity_id = image_registry_credential.value.user_assigned_identity_id
2324
}
2425
}
2526

variables.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ variable "exposed_ports_udp" {
6969

7070
variable "image_registry_credential" {
7171
type = list(object({
72-
server = string
73-
username = string
74-
password = string
72+
server = string
73+
username = string
74+
password = string
75+
user_assigned_identity_id = string
7576
}))
7677
description = "List of objects to configure connection to private registry"
7778
default = []

0 commit comments

Comments
 (0)