Skip to content

Commit c91f835

Browse files
authored
Merge branch 'master' into feature/add-capacity-rebalance
2 parents 710513d + 3ecdc20 commit c91f835

7 files changed

+15
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
145145
| Name | Version |
146146
|------|---------|
147147
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
148-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.22.0 |
148+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.35.0 |
149149
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | >= 1.11.1 |
150150
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.4 |
151151
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.1 |
@@ -156,7 +156,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
156156

157157
| Name | Version |
158158
|------|---------|
159-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.22.0 |
159+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.35.0 |
160160
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | >= 1.11.1 |
161161
| <a name="provider_local"></a> [local](#provider\_local) | >= 1.4 |
162162
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.1 |

cluster.tf

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ resource "aws_iam_policy" "cluster_elb_sl_role_creation" {
170170
description = "Permissions for EKS to create AWSServiceRoleForElasticLoadBalancing service-linked role"
171171
policy = data.aws_iam_policy_document.cluster_elb_sl_role_creation[0].json
172172
path = var.iam_path
173+
tags = var.tags
173174
}
174175

175176
resource "aws_iam_role_policy_attachment" "cluster_elb_sl_role_creation" {

docs/autoscaling.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ resource "aws_iam_policy" "worker_autoscaling" {
2121
description = "EKS worker node autoscaling policy for cluster ${module.my_cluster.cluster_id}"
2222
policy = data.aws_iam_policy_document.worker_autoscaling.json
2323
path = var.iam_path
24+
tags = var.tags
2425
}
2526
2627
data "aws_iam_policy_document" "worker_autoscaling" {

irsa.tf

+7
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ resource "aws_iam_openid_connect_provider" "oidc_provider" {
1212
client_id_list = [local.sts_principal]
1313
thumbprint_list = [var.eks_oidc_root_ca_thumbprint]
1414
url = flatten(concat(aws_eks_cluster.this[*].identity[*].oidc.0.issuer, [""]))[0]
15+
16+
tags = merge(
17+
{
18+
Name = "${var.cluster_name}-eks-irsa"
19+
},
20+
var.tags
21+
)
1522
}

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = ">= 0.13.1"
33

44
required_providers {
5-
aws = ">= 3.22.0"
5+
aws = ">= 3.35.0"
66
local = ">= 1.4"
77
null = ">= 2.1"
88
template = ">= 2.1"

workers.tf

+1
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ resource "aws_iam_instance_profile" "workers" {
453453
)
454454

455455
path = var.iam_path
456+
tags = var.tags
456457

457458
lifecycle {
458459
create_before_destroy = true

workers_launch_template.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ resource "aws_launch_template" "workers_launch_template" {
390390
}
391391

392392
dynamic "instance_market_options" {
393-
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : list(lookup(var.worker_groups_launch_template[count.index], "market_type", null))
393+
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : tolist([lookup(var.worker_groups_launch_template[count.index], "market_type", null)])
394394
content {
395395
market_type = instance_market_options.value
396396
}
@@ -568,6 +568,7 @@ resource "aws_iam_instance_profile" "workers_launch_template" {
568568
local.default_iam_role_id,
569569
)
570570
path = var.iam_path
571+
tags = var.tags
571572

572573
lifecycle {
573574
create_before_destroy = true

0 commit comments

Comments
 (0)