Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit e110da4

Browse files
committed
Add new variables to template functions
1 parent aa3c706 commit e110da4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
aws_region = "eu-east-1"
22

33
# Used for naming related resources
4-
cluster_name = "my-minikube"
4+
name = "my-minikube"
55

66
# The Key of the tag which determines resources belonging to the application. All resources with matching tag and its value will be tagged with additional tags.
77
search_tag_key = "kubernetes.io/cluster/my-minikube"

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ data "template_file" "lambda" {
6161

6262
vars {
6363
aws_region = "${var.aws_region}"
64-
cluster_name = "${var.cluster_name}"
64+
name = "${var.cluster_name}"
65+
search_tag_key = "${var.search_tag_key}"
66+
search_tag_value = "${var.search_tag_value}"
6567
tags = "${jsonencode(var.tags)}"
6668
timestamp = "${timestamp()}"
6769
}

0 commit comments

Comments
 (0)