mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-27 11:51:07 +01:00
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:
@@ -14,6 +14,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Added `--with-aggregate-type-defaults` option to terraform-docs (by @max-rocket-internet)
|
- 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]
|
## [[v1.8.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.7.0...v1.8.0)] - 2018-12-04]
|
||||||
|
|
||||||
|
|||||||
@@ -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. |
|
| worker\_security\_group\_id | Security group ID attached to the EKS workers. |
|
||||||
| workers\_asg\_arns | IDs of the autoscaling groups containing workers. |
|
| workers\_asg\_arns | IDs of the autoscaling groups containing workers. |
|
||||||
| workers\_asg\_names | Names of the autoscaling groups containing workers. |
|
| workers\_asg\_names | Names of the autoscaling groups containing workers. |
|
||||||
|
|
||||||
|
|||||||
4
data.tf
4
data.tf
@@ -18,11 +18,11 @@ data "aws_iam_policy_document" "workers_assume_role_policy" {
|
|||||||
data "aws_ami" "eks_worker" {
|
data "aws_ami" "eks_worker" {
|
||||||
filter {
|
filter {
|
||||||
name = "name"
|
name = "name"
|
||||||
values = ["amazon-eks-node-*"]
|
values = ["amazon-eks-node-${var.cluster_version}-v*"]
|
||||||
}
|
}
|
||||||
|
|
||||||
most_recent = true
|
most_recent = true
|
||||||
owners = ["602401143452"] # Amazon
|
owners = ["602401143452"]
|
||||||
}
|
}
|
||||||
|
|
||||||
data "aws_iam_policy_document" "cluster_assume_role_policy" {
|
data "aws_iam_policy_document" "cluster_assume_role_policy" {
|
||||||
|
|||||||
Reference in New Issue
Block a user