Skip to content

Commit

Permalink
Add tags to ressources missing them
Browse files Browse the repository at this point in the history
  • Loading branch information
antonincms committed Jul 1, 2024
1 parent 6fd0985 commit 4bcb252
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions iam_ebs_csi_driver.tf
Original file line number Diff line number Diff line change
@@ -75,6 +75,8 @@ resource "aws_iam_policy" "ebs_csi_driver" {
}
]
})

tags = var.tags
}

resource "aws_iam_role_policy_attachment" "ebs_csi_driver" {
2 changes: 2 additions & 0 deletions iam_external_dns.tf
Original file line number Diff line number Diff line change
@@ -74,6 +74,8 @@ resource "aws_iam_policy" "external_dns" {
}
]
})

tags = var.tags
}

resource "aws_iam_role_policy_attachment" "external_dns" {
2 changes: 2 additions & 0 deletions iam_loadbalancer_controller.tf
Original file line number Diff line number Diff line change
@@ -290,6 +290,8 @@ resource "aws_iam_policy" "aws_load_balancer_controller" {
}
]
})

tags = var.tags
}

resource "aws_iam_role_policy_attachment" "aws_load_balancer_controller" {
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -119,6 +119,8 @@ resource "aws_iam_openid_connect_provider" "quortex_cluster" {
client_id_list = ["sts.amazonaws.com"]
thumbprint_list = [data.tls_certificate.quortex_cluster.certificates[0].sha1_fingerprint]
url = aws_eks_cluster.quortex.identity[0].oidc[0].issuer

tags = var.tags
}

# Worker nodes
3 changes: 1 addition & 2 deletions node_group_advanced.tf
Original file line number Diff line number Diff line change
@@ -63,6 +63,7 @@ resource "aws_iam_instance_profile" "quortex" {
count = var.handle_iam_resources ? 1 : 0
name = var.instance_profile_name
role = aws_iam_role.quortex_role_worker[0].name
tags = var.tags
}

data "aws_ami" "eks_worker_image" {
@@ -126,7 +127,6 @@ resource "aws_launch_template" "quortex_launch_tpl" {
}
)
}

)
)

@@ -164,7 +164,6 @@ resource "aws_launch_template" "quortex_launch_tpl" {
},
var.tags
)

}

# For each node group, create an autoscaling group based on the launch template

0 comments on commit 4bcb252

Please sign in to comment.