Skip to content

Commit e6671e4

Browse files
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
1 parent dfec7b1 commit e6671e4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1414

1515
### Changed
1616
- Added `--with-aggregate-type-defaults` option to terraform-docs (by @max-rocket-internet)
17+
- Updated AMI ID filtering to only filter AMIs from current cluster k8s version (by @max-rocket-internet)
1718

1819
## [[v1.8.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.7.0...v1.8.0)] - 2018-12-04]
1920

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,3 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
149149
| worker\_security\_group\_id | Security group ID attached to the EKS workers. |
150150
| workers\_asg\_arns | IDs of the autoscaling groups containing workers. |
151151
| workers\_asg\_names | Names of the autoscaling groups containing workers. |
152-

data.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ data "aws_iam_policy_document" "workers_assume_role_policy" {
1818
data "aws_ami" "eks_worker" {
1919
filter {
2020
name = "name"
21-
values = ["amazon-eks-node-*"]
21+
values = ["amazon-eks-node-${var.cluster_version}-v*"]
2222
}
2323

2424
most_recent = true
25-
owners = ["602401143452"] # Amazon
25+
owners = ["602401143452"]
2626
}
2727

2828
data "aws_iam_policy_document" "cluster_assume_role_policy" {

0 commit comments

Comments
 (0)