Terraform code for creating multiple ALB's at a time

·

1 min read

variable "subnet" {

default = ["subnet-id" , "subnet-id"]

}

variable "secgrp" {

default = ["sg-id"]

}

variable "vpc_tg" {

default = "vpc-id"

}

variable "instance" { type = list(map(any)) default = [

{TargetGroupName = "Trgtgrpname" }

] }

variable "tg-attachemnt-ips" { default = ["ip1","ip2","1ip3","ip4"] }

variable "tg-awslb" {

type = list(map(any))

default = [ {ELBName = "<>" , TargetGroupName = "<>"} ] }

variable "alb_url" { default = "<>>>" }

variable "CR" { default = "CRxxxxxx" }

variable "acccess-log-bucket" {

default = "S3-Bucketname" }

variable "certarn" {

default = "<certarn>>>"

}

mainterrform-alb.tf