summaryrefslogtreecommitdiff
path: root/module/ri-base/src/main/resources/templates/terraform/variables.j2
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-31 12:05:03 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-31 12:05:03 +0100
commit59ef07a9f583f0f0f64055a47938d57516b43541 (patch)
treedccbf769d14a101d281359ebc9208fe774e74ed3 /module/ri-base/src/main/resources/templates/terraform/variables.j2
parent191799ab976bd7dad7162d62bf86f2d3cc5d0dbd (diff)
downloadrules-sandbox-59ef07a9f583f0f0f64055a47938d57516b43541.tar.gz
rules-sandbox-59ef07a9f583f0f0f64055a47938d57516b43541.tar.bz2
rules-sandbox-59ef07a9f583f0f0f64055a47938d57516b43541.tar.xz
rules-sandbox-59ef07a9f583f0f0f64055a47938d57516b43541.zip
Better Terraform support.
Diffstat (limited to 'module/ri-base/src/main/resources/templates/terraform/variables.j2')
-rw-r--r--module/ri-base/src/main/resources/templates/terraform/variables.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/module/ri-base/src/main/resources/templates/terraform/variables.j2 b/module/ri-base/src/main/resources/templates/terraform/variables.j2
new file mode 100644
index 0000000..6c37d99
--- /dev/null
+++ b/module/ri-base/src/main/resources/templates/terraform/variables.j2
@@ -0,0 +1,10 @@
+{%- for var in variables %}
+variable "{{ var.name }}" {
+{%- if var.type %}
+ type = {{ var.type }}
+{% endif %}
+{%- if var.default %}
+ default = {{ var.default }}
+{% endif %}
+}
+{% endfor %}