Changing AMI data resource to filter for k8s version of cluster (#215)

* Changing AMI data resource to only use k8s version of cluster

* Reverting this method as it doesn't work
This commit is contained in:
Max Williams
2018-12-17 09:43:53 +01:00
committed by GitHub
parent dfec7b1003
commit e6671e45ae
3 changed files with 3 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- Added `--with-aggregate-type-defaults` option to terraform-docs (by @max-rocket-internet)
- Updated AMI ID filtering to only filter AMIs from current cluster k8s version (by @max-rocket-internet)
## [[v1.8.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.7.0...v1.8.0)] - 2018-12-04]

View File

@@ -149,4 +149,3 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
| worker\_security\_group\_id | Security group ID attached to the EKS workers. |
| workers\_asg\_arns | IDs of the autoscaling groups containing workers. |
| workers\_asg\_names | Names of the autoscaling groups containing workers. |

View File

@@ -18,11 +18,11 @@ data "aws_iam_policy_document" "workers_assume_role_policy" {
data "aws_ami" "eks_worker" {
filter {
name = "name"
values = ["amazon-eks-node-*"]
values = ["amazon-eks-node-${var.cluster_version}-v*"]
}
most_recent = true
owners = ["602401143452"] # Amazon
owners = ["602401143452"]
}
data "aws_iam_policy_document" "cluster_assume_role_policy" {