From 3f0601551fab8fd8b932e57fc9b6337382805cc9 Mon Sep 17 00:00:00 2001 From: Camilo Santana Date: Thu, 13 Jun 2019 01:36:58 -0700 Subject: [PATCH] adds tags to resource aws_iam_role.cluster (#390) * adds tagging to iam role Signed-off-by: camilo santana * emulates name_prefix Signed-off-by: camilo santana * incriment version Signed-off-by: camilo santana * tags iam role Signed-off-by: camilo santana * improve resource name Signed-off-by: camilo santana * removes comments Signed-off-by: camilo santana * reverts erroneous increment to release version Signed-off-by: camilo santana * reverts aws_iam_role.cluster name to orig value Signed-off-by: camilo santana * removes random suffix idea i was using random_id until i could figure out a datestamp or something here. `name_prefix` does a better job. Signed-off-by: camilo santana * terraform fmt on local.tf Signed-off-by: camilo santana --- CHANGELOG.md | 2 +- cluster.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbcdf55..37e4829 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,9 +13,9 @@ project adheres to [Semantic Versioning](http://semver.org/). - Added Termination Policy Option to worker ASGs (by @undeadops) - Update EBS optimized instances type (by @gloutsch) +- Added tagging for iam role created in `./cluster.tf` (@camilosantana) - Enable log retention for cloudwatch log groups (by @yuriipolishchuk) - ### Changed - Fix toggle for IAM instance profile creation for mixed launch templates (by @jnozo) diff --git a/cluster.tf b/cluster.tf index 9f27005..50b883d 100644 --- a/cluster.tf +++ b/cluster.tf @@ -67,6 +67,7 @@ resource "aws_iam_role" "cluster" { permissions_boundary = "${var.permissions_boundary}" path = "${var.iam_path}" force_detach_policies = true + tags = "${var.tags}" } resource "aws_iam_role_policy_attachment" "cluster_AmazonEKSClusterPolicy" {