Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created March 31, 2021 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save podhmo/1b85a76851f9b6e94541735f31479e0c to your computer and use it in GitHub Desktop.
Save podhmo/1b85a76851f9b6e94541735f31479e0c to your computer and use it in GitHub Desktop.
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