skip to Main Content

Ubuntu – terraform list and count

I'm trying to deploy 3 vm's in proxmox with terraform but I have errors and I don't know why. │ Error: Incorrect attribute value type │ │ on ../resources/proxmox/main.tf line 2, in resource "proxmox_vm_qemu" "vm": │ 2: name = var.vm_name…

VIEW QUESTION

Terraform and Azure: Problems with association between NetworkSecurityGroups and Subnets

While applying my terraform script, I'm getting the following error: ╷ │ Error: A resource with the ID "/subscriptions/***/resourceGroups/rg-subnet-test/providers/Microsoft.Network/virtualNetworks/subnet-test-vnet/subnets/subnet-test-subnet" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource…

VIEW QUESTION

Azure – how to variablize the resource attribute as input value in terraform

I am trying to use below code data "azurerm_resource_group" "rg_tst_na" { name = "test1" } data "azurerm_resource_group" "rg_dev_na" { name = "test2" } resource "azurerm_role_assignment" "test_role_assign" { for_each = var.test_role_assignment principal_id = azurerm_user_assigned_identity.test_setup["${each.key}_${each.value}"].principal_id # this is created as separate resource…

VIEW QUESTION
Back To Top
Search