Hi
While doing terraform Plan I am getting this error, kindly help to provide reason
var.iexams_allowedremote
Trusted sources to allow RDP/ SSH access from. e.g. {iexams_mgmt=[“gen”]} e.g. 1.2.3.4/32, 5.6.7.8/24
Enter a value: fakse
var.iexams_elb
Map of elb instances in iexams networks
Enter a value: false
var.iexams_tgw
Map of vpc transit gateways used for indirect reference by iexams_networks.
Enter a value: false
var.iexams_vpcpeers
Map of vpc peerings used for indirect reference by iexams_networks.
Enter a value: false
Error: Variables not allowed
on line 1:
(source code not available)
Variables may not be used here.
Error: No value for required variable
on variables.tf line 147:
147: variable “iexams_allowedremote” {
The root module input variable “iexams_allowedremote” is not set, and has no
default value. Use a -var or -var-file command line argument to provide a
value for this variable.
Attached tfvars
iexams_allowedremote = {
sshtsn = {}# {mgmt=[“gen”]}
rdptsn = {} # {mgmt=[“gen”]}
sshtip = [“172.16.159.51/32”,“172.16.159.54/32”,“172.16.159.45/32”,“172.16.159.56/32”,“172.16.159.39/32”,“172.16.159.43/32”,“172.16.159.49/32”,“172.16.159.55/32”,“172.16.159.40/32”,“172.16.159.44/32”,“172.16.159.48/32”,“172.16.159.47/32”]
rdptip = [“10.194.191.128/25”,“172.16.159.51/32”,“172.16.159.54/32”,“172.16.159.45/32”,“172.16.159.56/32”,“172.16.159.39/32”,“172.16.159.43/32”,“172.16.159.49/32”,“172.16.159.55/32”,“172.16.159.40/32”,“172.16.159.44/32”,“172.16.159.48/32”,“172.16.159.47/32”]
va_enable = true
va_tip =
va_tsg = [“sg-034be26faf8723e30”]
comm_enable = true
comm_tip =
comm_tsg = [
{srcsg=“sg-0157733e3560b510c”, destportstart=4118, destportend=4118, destproto=“tcp”, description=“Allow communications from DSM manager to client.”},
{srcsg=“sg-0157733e3560b510c”, destportstart=4122, destportend=4122, destproto=“tcp”, description=“Allow communications from DSM manager to client.”}
]
}
iexams_elb = {
ezweblb = { name=“weblb”, vpc=“eapp”, subnet=[“web”], internal=false, elb_type=“application”, sg = ,
cross_zone=true, enable_deletion_protection=true,
purpose = “ELB for internet web tier”,
default_acm_cert=“”,
default_acm_certkey=“”,
default_acm_certchain=“”,
lsnr = [
{ port=80, protocol=“TCP”, ssl_policy=“”,
country=“”, province=“”, locality=“”,
org=“”, ou=“”, fqdn=“”, valid_hours=0 },
{ port=443, protocol=“TLS”, ssl_policy=“ELBSecurityPolicy-2016-08”,
country=“SG”, province=“Singapore”, locality=“Singapore”,
org=“SEAB”, ou=“ITB”, fqdn=“uat.iex.seab.gov.sg”, valid_hours=87600 },
],
tg = [
{ name=“tcp”, port=80, protocol=“TCP”, proxy_protocol_v2=false,
target_type=“instance”,
purpose=“Target group for web lb”,
sk = { type=“”, cookie_duration=0, enabled=false}
hc = { interval=30, timeout=10, port=80, protocol=“TCP”, path=“/”,
healthy_threshold=3, unhealthy_threshold=3, matcher=“200-299”
},
att = { port=80 }
}
]
},