Skip to content

Commit f9d3a89

Browse files
authored
feat: Enabled tags for IAM policies (#38)
1 parent 2046db6 commit f9d3a89

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
56
## [2.6.0](https://github.com/terraform-aws-modules/terraform-aws-step-functions/compare/v2.5.2...v2.6.0) (2022-04-11)
67

78

89
### Features
910

1011
* Added default resources for events permissions ([#34](https://github.com/terraform-aws-modules/terraform-aws-step-functions/issues/34)) ([698e4c1](https://github.com/terraform-aws-modules/terraform-aws-step-functions/commit/698e4c1a4640ee80d810bd8f7e6e4db3acfd2b47))
1112

13+
1214
### [2.5.2](https://github.com/terraform-aws-modules/terraform-aws-step-functions/compare/v2.5.1...v2.5.2) (2022-01-14)
1315

1416

@@ -23,6 +25,7 @@ All notable changes to this project will be documented in this file.
2325

2426
* 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))
2527

28+
2629
<a name="v2.5.0"></a>
2730
## [v2.5.0] - 2021-09-15
2831

main.tf

+5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ resource "aws_iam_policy" "service" {
110110

111111
name = "${local.role_name}-${each.key}"
112112
policy = data.aws_iam_policy_document.service[each.key].json
113+
tags = var.tags
113114
}
114115

115116
resource "aws_iam_policy_attachment" "service" {
@@ -130,6 +131,7 @@ resource "aws_iam_policy" "additional_json" {
130131

131132
name = local.role_name
132133
policy = var.policy_json
134+
tags = var.tags
133135
}
134136

135137
resource "aws_iam_policy_attachment" "additional_json" {
@@ -149,6 +151,7 @@ resource "aws_iam_policy" "additional_jsons" {
149151

150152
name = "${local.role_name}-${count.index}"
151153
policy = var.policy_jsons[count.index]
154+
tags = var.tags
152155
}
153156

154157
resource "aws_iam_policy_attachment" "additional_jsons" {
@@ -232,6 +235,7 @@ resource "aws_iam_policy" "additional_inline" {
232235

233236
name = "${local.role_name}-inline"
234237
policy = data.aws_iam_policy_document.additional_inline[0].json
238+
tags = var.tags
235239
}
236240

237241
resource "aws_iam_policy_attachment" "additional_inline" {
@@ -273,6 +277,7 @@ resource "aws_iam_policy" "logs" {
273277

274278
name = "${local.role_name}-logs"
275279
policy = data.aws_iam_policy_document.logs[0].json
280+
tags = var.tags
276281
}
277282

278283
resource "aws_iam_policy_attachment" "logs" {

0 commit comments

Comments
 (0)