Fixed impact of changing module output
This commit is contained in:
Родитель
5cbda784a8
Коммит
5daf25da94
|
@ -1,6 +1,6 @@
|
||||||
data "azurerm_client_config" "current" {}
|
data "azurerm_client_config" "current" {}
|
||||||
|
|
||||||
data "azurerm_api_management" "apim" {
|
data "azurerm_api_management" "apim" {
|
||||||
name = module.apim.apim_name
|
name = module.apim.api_management.name
|
||||||
resource_group_name = azurerm_resource_group.test_group.name
|
resource_group_name = azurerm_resource_group.test_group.name
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,8 +93,8 @@ resource "azurerm_key_vault_secret" "test_group" {
|
||||||
module "apim" {
|
module "apim" {
|
||||||
source = "../../"
|
source = "../../"
|
||||||
resource_group_name = azurerm_resource_group.test_group.name
|
resource_group_name = azurerm_resource_group.test_group.name
|
||||||
prefix = local.prefix
|
prefix = [local.unique_name_stub]
|
||||||
suffix = local.suffix
|
suffix = [local.unique_name_stub]
|
||||||
|
|
||||||
# API Management
|
# API Management
|
||||||
apim_publisher_name = "John Doe"
|
apim_publisher_name = "John Doe"
|
||||||
|
@ -130,8 +130,8 @@ module "apim" {
|
||||||
resource "azurerm_key_vault_access_policy" "apim" {
|
resource "azurerm_key_vault_access_policy" "apim" {
|
||||||
key_vault_id = azurerm_key_vault.test_group.id
|
key_vault_id = azurerm_key_vault.test_group.id
|
||||||
|
|
||||||
tenant_id = module.apim.apim_identity[0].tenant_id
|
tenant_id = module.apim.api_management.identity[0].tenant_id
|
||||||
object_id = module.apim.apim_identity[0].principal_id
|
object_id = module.apim.api_management.identity[0].principal_id
|
||||||
|
|
||||||
secret_permissions = [
|
secret_permissions = [
|
||||||
"get",
|
"get",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче