forked from gruntwork-io/terratest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
22 lines (18 loc) · 765 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ---------------------------------------------------------------------------------------------------------------------
# BASIC TERRAFORM EXAMPLE
# See test/terraform_aws_example.go for how to write automated tests for this code.
# ---------------------------------------------------------------------------------------------------------------------
data "template_file" "example" {
template = "${var.example}"
}
data "template_file" "example2" {
template = "${var.example2}"
}
resource "local_file" "example" {
content = "${data.template_file.example.rendered} + ${data.template_file.example2.rendered}"
filename = "example.txt"
}
resource "local_file" "example2" {
content = "${data.template_file.example2.rendered}"
filename = "example2.txt"
}