Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created Mar 31, 2021
Embed
What would you like to do?
resource "null_resource" "echo" {
triggers = {
x = var.primary_configuration.x
y = var.primary_configuration.y
z = var.primary_configuration.z
}
provisioner "local-exec" {
command = <<EOS
echo x=${var.primary_configuration.x} y=${var.primary_configuration.y} z=${var.primary_configuration.z}
EOS
}
}
variable "primary_configuration" {
type = object({
x = number
y = number
z = number
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment