added the ability to optionally specify worker_image_id

This commit is contained in:
brandoconnor
2018-06-08 00:48:17 -07:00
parent fbe64df188
commit 46e5bf6cda
7 changed files with 39 additions and 26 deletions

10
data.tf
View File

@@ -1,5 +1,15 @@
data "aws_region" "current" {}
data "aws_ami" "eks_worker" {
filter {
name = "name"
values = ["eks-worker-*"]
}
most_recent = true
owners = ["602401143452"] # Amazon
}
data "aws_iam_policy_document" "workers_assume_role_policy" {
statement {
sid = "EKSWorkerAssumeRole"