Skip to content

Instantly share code, notes, and snippets.

@bear454
Created February 14, 2020 18:27
Show Gist options
  • Save bear454/96c067ab082f5c6cc9321061f601373f to your computer and use it in GitHub Desktop.
Save bear454/96c067ab082f5c6cc9321061f601373f to your computer and use it in GitHub Desktop.
Terraform "Hello, World" app

I needed an exceptionally simple terraform script with no external dependencies, but a variable input... and everything I found during a minute of Googling was overkill. So... "Hello, World." it is.

This is a great test script for blue-horizon.

output "greeting" {
value = "Hello, ${var.name}."
}
{
"variable": {
"name": {
"type": "string",
"description": "Who should terraform greet?",
"default": "World"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment