mofaizal / Azure-Terraform

Azure Terraform Architecture Deployment Pattern
15 stars 18 forks source link

not working #1

Open tbpoetke opened 4 years ago

tbpoetke commented 4 years ago

I wanted to test your repo, for figure out some problems I have with my setup. Both, Level 0 and 1 are not working because of an error:

Level 0: Error: Error updating Route Table Association for Subnet "GatewaySubnet" (Virtual Network "vnet-dev-cloud-engg-project1" / Resource Group "rg-dev-githubnetworking"): network.SubnetsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="VirtualNetworkGatewaySubnetRouteTableCannotHaveDefaultRoute" Message="The operation failed because of the 0.0.0.0/0 route in the route table rt-dev-gateway associated to the the GatewaySubnet is not supported. Please remove the route from the route table associated to the GatewaySubnet and try again. No changes have occurred on the gateway at this time. See here for additional details: https://aka.ms/GatewaySubnet." Details=[]

on azure-resources/routetable-association/rt-association.tf line 2, in resource "azurerm_subnet_route_table_association" "rt_subnet_association": 2: resource "azurerm_subnet_route_table_association" "rt_subnet_association" {

Level 1:

Error: Incorrect attribute value type

on modules/virtual-machine/virtual-machine.tf line 5, in resource "azurerm_virtual_machine" "virtual_machine": 5: network_interface_ids = ["${var.nic_id}"]

Inappropriate value for attribute "network_interface_ids": element 0: string required.

Cheers

andrudale commented 4 years ago

I'm getting the same error you're seeing on your level 1 for the same attribute and everything. I'm on Terraform version 0.12.18. I'm using the same code that worked on version 0.11

ankitkotnala commented 4 years ago

I am facing the same issue with Terraform v0.12.19 Even tried passing value as plain text/list didn't work

MikeinATL commented 4 years ago

I guess no one has responded to this issue. I'm getting the same error when creating an Azure VM. The string was pulled directly from Terraforms documentation. I cant figure out what is the correct value. Im running v2.0 which I find to be a stable version in Terraform. I dont think changing the version will help here. Is there anyone from Terraform that can provide a solution?

premlondhe commented 4 years ago

Please try below, I was also facing same issue, Hope it will help u. network_interface_ids = [var.nic_id]

My terraform version is Terraform v0.12.28