From 418acaae3b3f09227703158e28968e651ef5113f Mon Sep 17 00:00:00 2001 From: sandeepgopi Date: Sun, 10 Apr 2022 23:15:33 +0100 Subject: [PATCH 1/5] enabled tags for resources --- main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.tf b/main.tf index d6628e6..0c14b13 100644 --- a/main.tf +++ b/main.tf @@ -110,6 +110,7 @@ resource "aws_iam_policy" "service" { name = "${local.role_name}-${each.key}" policy = data.aws_iam_policy_document.service[each.key].json + tags = var.tags } resource "aws_iam_policy_attachment" "service" { @@ -130,6 +131,7 @@ resource "aws_iam_policy" "additional_json" { name = local.role_name policy = var.policy_json + tags = var.tags } resource "aws_iam_policy_attachment" "additional_json" { @@ -149,6 +151,7 @@ resource "aws_iam_policy" "additional_jsons" { name = "${local.role_name}-${count.index}" policy = var.policy_jsons[count.index] + tags = var.tags } resource "aws_iam_policy_attachment" "additional_jsons" { @@ -232,6 +235,7 @@ resource "aws_iam_policy" "additional_inline" { name = "${local.role_name}-inline" policy = data.aws_iam_policy_document.additional_inline[0].json + tags = var.tags } resource "aws_iam_policy_attachment" "additional_inline" { @@ -273,6 +277,7 @@ resource "aws_iam_policy" "logs" { name = "${local.role_name}-logs" policy = data.aws_iam_policy_document.logs[0].json + tags = var.tags } resource "aws_iam_policy_attachment" "logs" { From b80309383fe267af7289b50af2c4b7887ed78084 Mon Sep 17 00:00:00 2001 From: sandeepgopi Date: Sun, 10 Apr 2022 23:25:12 +0100 Subject: [PATCH 2/5] updated readme file notes --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c48360..9e4c04d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. +### Enabled Tagging For Iam-policy + + +## [v2.6.0] - 2022-04-10 + +- feat: Enabled taging for iam policy resource ([#32](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/32) + + ### [2.5.2](https://github.com/terraform-aws-modules/terraform-aws-step-functions/compare/v2.5.1...v2.5.2) (2022-01-14) @@ -16,6 +24,7 @@ All notable changes to this project will be documented in this file. * update CI/CD process to enable auto-release workflow ([#26](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/26)) ([660d759](https://github.com/terraform-aws-modules/terraform-aws-step-functions/commit/660d759b68d2ae9817fd1bc138885cddc58dfd2e)) + ## [v2.5.0] - 2021-09-15 From 6a3564008b78956066a08737a1570fbc9fcf279c Mon Sep 17 00:00:00 2001 From: sandeepgopi Date: Mon, 11 Apr 2022 23:16:39 +0100 Subject: [PATCH 3/5] updated the changelog file --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e4c04d..90c2cf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. ### Enabled Tagging For Iam-policy - + ## [v2.6.0] - 2022-04-10 - feat: Enabled taging for iam policy resource ([#32](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/32) From 72fba301430eee37dd9df3b4fadda4c3b6a27e8d Mon Sep 17 00:00:00 2001 From: sandeepgopi Date: Mon, 11 Apr 2022 23:19:21 +0100 Subject: [PATCH 4/5] updated the changelog file --- CHANGELOG.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64ab76e..1195ce3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,11 @@ All notable changes to this project will be documented in this file. -### Enabled Tagging For Iam-policy +## Feature - -## [v2.6.0] - 2022-04-10 +* Enabled tagging for 5 iam policy resources([#32](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/32) +([eaf9](https://github.com/terraform-aws-modules/terraform-aws-step-functions/pull/38/commits/eaf9cf4241a7ce21af1044e6b2eda625123ab5dc)) -- feat: Enabled taging for iam policy resource ([#32](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/32) ## [2.6.0](https://github.com/terraform-aws-modules/terraform-aws-step-functions/compare/v2.5.2...v2.6.0) (2022-04-11) From a7bd1a2613606346197a19b23bea24383166225a Mon Sep 17 00:00:00 2001 From: sandeepgopi Date: Wed, 13 Apr 2022 09:43:37 +0100 Subject: [PATCH 5/5] updated the formatting --- CHANGELOG.md | 7 ------- main.tf | 10 +++++----- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1195ce3..40cae45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,6 @@ All notable changes to this project will be documented in this file. -## Feature - -* Enabled tagging for 5 iam policy resources([#32](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/32) -([eaf9](https://github.com/terraform-aws-modules/terraform-aws-step-functions/pull/38/commits/eaf9cf4241a7ce21af1044e6b2eda625123ab5dc)) - - - ## [2.6.0](https://github.com/terraform-aws-modules/terraform-aws-step-functions/compare/v2.5.2...v2.6.0) (2022-04-11) diff --git a/main.tf b/main.tf index 0c14b13..b0f5293 100644 --- a/main.tf +++ b/main.tf @@ -110,7 +110,7 @@ resource "aws_iam_policy" "service" { name = "${local.role_name}-${each.key}" policy = data.aws_iam_policy_document.service[each.key].json - tags = var.tags + tags = var.tags } resource "aws_iam_policy_attachment" "service" { @@ -131,7 +131,7 @@ resource "aws_iam_policy" "additional_json" { name = local.role_name policy = var.policy_json - tags = var.tags + tags = var.tags } resource "aws_iam_policy_attachment" "additional_json" { @@ -151,7 +151,7 @@ resource "aws_iam_policy" "additional_jsons" { name = "${local.role_name}-${count.index}" policy = var.policy_jsons[count.index] - tags = var.tags + tags = var.tags } resource "aws_iam_policy_attachment" "additional_jsons" { @@ -235,7 +235,7 @@ resource "aws_iam_policy" "additional_inline" { name = "${local.role_name}-inline" policy = data.aws_iam_policy_document.additional_inline[0].json - tags = var.tags + tags = var.tags } resource "aws_iam_policy_attachment" "additional_inline" { @@ -277,7 +277,7 @@ resource "aws_iam_policy" "logs" { name = "${local.role_name}-logs" policy = data.aws_iam_policy_document.logs[0].json - tags = var.tags + tags = var.tags } resource "aws_iam_policy_attachment" "logs" {