-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Output variables in the format of unnecessarily multidimensional arrays which are hard to query by other tf code using this module:
- output code example:
output "public_ip" { description = "Public IPs of created instances. " value = ["${module.instance.public_ip}"] }
- generated output:
public_ip = [ [ "132.145.XX.YY", "132.145.XX.YY", ], ]
- Example usecase: remote exec connection blocks
provisioner "file" { connection { user = "opc" agent = false private_key = "${chomp(file(var.ssh_private_key_path))}" timeout = "10m" host = "${module.instance.public_ip[count.index]}" } source = "apache_install.sh" destination = "/tmp/apache_install.sh" }
the above syntax for getting the host public IP it will not work with multidimensional arrays and it will require unnecessarily complex element()/lookup() functions usage.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request