Hi,
I am getting below error when using the module in the resource file as:
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "Terraform"
azs = "${slice(data.aws_availability_zones.available.names,0,var.subnet_count)}"
enable_nat_gateway = true
create_database_subnet_group = false
tags {
}
}
When running init in the folder, i am receiving this issue:
C:\Users\terraform\project-03\>terraform init
Initializing modules...
- module.vpc
Getting source "terraform-aws-modules/vpc/aws"
Error downloading modules: Error loading modules: module vpc: Error parsing .terraform\modules\2683148c87fd679d1116df9f
366f3b91\terraform-aws-modules-terraform-aws-vpc-c032c26\main.tf: At 2:23: Unknown token: 2:23 IDENT max
I can see in the module issue is coming at:
length(var.private_subnets),
length(var.elasticache_subnets),
length(var.database_subnets),
length(var.redshift_subnets),
Any pointers for this?