upload blob and use managed identity
This commit is contained in:
Родитель
5001718187
Коммит
b872b399ef
|
@ -7,7 +7,7 @@ terraform {
|
|||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
version = "~> 2.2.1"
|
||||
version = "~> 3.3.1"
|
||||
}
|
||||
null = {
|
||||
source = "hashicorp/null"
|
||||
|
|
|
@ -61,6 +61,9 @@ variable "mssql_servers" {
|
|||
variable "storage_accounts" {
|
||||
default = {}
|
||||
}
|
||||
variable "storage_containers" {
|
||||
default = {}
|
||||
}
|
||||
variable "storage_account_blobs" {
|
||||
default = {}
|
||||
}
|
||||
|
@ -103,3 +106,6 @@ variable "dynamic_keyvault_secrets" {
|
|||
variable "managed_identities" {
|
||||
default = {}
|
||||
}
|
||||
variable "var_folder_path" {
|
||||
default = null
|
||||
}
|
|
@ -33,6 +33,7 @@ module "vm_extensions" {
|
|||
[
|
||||
for key, value in try(var.storage_account_blobs, []) : module.caf.storage_account_blobs[key].url
|
||||
])
|
||||
managed_identity = can(each.value.virtual_machine_extensions.devops_selfhosted_agent.managed_identity.lz_key) ? local.remote.managed_identities[each.value.virtual_machine_extensions.devops_selfhosted_agent.managed_identity.lz_key][each.value.virtual_machine_extensions.devops_selfhosted_agent.managed_identity.key].rbac_id : module.caf.managed_identities[each.value.virtual_machine_extensions.devops_selfhosted_agent.managed_identity.key].rbac_id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче