HI,
I have created a variable like below, would like to call this in pagerduty_user resource… it should come with name and email using for_each. How do I do that?
variable "pagerduty_user_list" {
default = {
eon morg = "eon.morgl@gmail.com",
water dance = "water.dance@gmail.com"
}
description = "user group for pagerduty "
type = map(string)
}
I would to call this variable from variable.tf file to main.tf file in resource pagerduty_user ?
trying to bring up the value from var to pag file using resource and redirect the output using local to another resource
Please let me know.