skip to Main Content

How can I correct a Terraform, Error: Incorrect attribute value type error?

Here is a the snippets of relevant code: resource "aws_vpc" "main" { cidr_block = "10.0.0.0/16" } data "aws_availability_zones" "available" { state = "available" } resource "aws_subnet" "private_subnet" { count = length(data.aws_availability_zones.available.names) vpc_id = aws_vpc.main.id cidr_block = "10.0.${20+count.index}.0/24" availability_zone = data.aws_availability_zones.available.names[count.index]…

VIEW QUESTION

Terraform Azure for each VM / NIC – Ubuntu

I'm trying to create multiplane vms using for each function in terraform. Resource Group resource "azurerm_resource_group" "rg" { name = "${var.prefix}-rg" location = "east us 2" tags = var.tags } VNET resource "azurerm_virtual_network" "vnet" { name = "${var.prefix}-network-1" address_space =…

VIEW QUESTION
Back To Top
Search