I think it works as I’d expect:
fbte61@SEA37LT16653:/tmp/terraform$ cat main.tf
locals {
authorized_ip_adress = "\"10.0.0.1\", \"10.0.0.2\", \"10.0.0.3\""
}
output "authorized_ip_adress" {
value = local.authorized_ip_adress
}
fbte61@SEA37LT16653:/tmp/terraform$ terraform apply
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
authorized_ip_adress = "10.0.0.1", "10.0.0.2", "10.0.0.3"
fbte61@SEA37LT16653:/tmp/terraform$
What is the output you want to have? Let’s work backwards from there