We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ee22d commit 213a252Copy full SHA for 213a252
examples/project-with-resource/main.tf
@@ -0,0 +1,17 @@
1
+# For interesting types of variables, check out the terraform docs:
2
+# https://www.terraform.io/language/values/variables#declaring-an-input-variable
3
+variable "message" {
4
+ type = string
5
+}
6
+
7
+# We can use a "null_resource" to test resources without a cloud provider:
8
+# https://www.terraform.io/language/resources/provisioners/null_resource
9
+resource "null_resource" "minimal_resource" {
10
11
+ # Note that Terraform's `provisioner` concept is generally an anti-pattern -
12
+ # more info here: https://www.terraform.io/language/resources/provisioners/syntax
13
+ # But it's helpful here for testing a resource.
14
+ provisioner "local-exec" {
15
+ command = "echo ${var.message}"
16
+ }
17
0 commit comments