readme now has instructions for basic kubectl operation testing. locals map used to aid in userdata

This commit is contained in:
brandoconnor
2018-06-07 02:52:43 -07:00
parent 9ed27801be
commit 67d2946b58
9 changed files with 165 additions and 86 deletions

View File

@@ -91,3 +91,13 @@ resource "aws_iam_role_policy_attachment" "workers_AmazonEC2ContainerRegistryRea
policy_arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
role = "${aws_iam_role.workers.name}"
}
resource "null_resource" "tags_as_list_of_maps" {
count = "${length(keys(var.tags))}"
triggers = "${map(
"key", "${element(keys(var.tags), count.index)}",
"value", "${element(values(var.tags), count.index)}",
"propagate_at_launch", "true"
)}"
}