diff --git a/README.md b/README.md
index 9194297..2be2e28 100644
--- a/README.md
+++ b/README.md
@@ -56,6 +56,11 @@ Inputs
String |
Additional policy to associate with IAM Role (optional) |
+
+ tags |
+ Map |
+ A map of tags to assign to the taggable resources. (optional) |
+
Outputs
diff --git a/role/inputs.tf b/role/inputs.tf
index 1a96cfe..32b0d13 100644
--- a/role/inputs.tf
+++ b/role/inputs.tf
@@ -167,3 +167,7 @@ variable "default-actions-policy" {
}
POLICY
}
+
+variable "tags" {
+ default = {}
+}
diff --git a/role/role.tf b/role/role.tf
index 97b303f..10ff58e 100644
--- a/role/role.tf
+++ b/role/role.tf
@@ -88,6 +88,7 @@ data "template_file" "default-s3-ecs-bucket-policy" {
resource "aws_iam_role" "cht_iam_role" {
name = var.role-name
path = "/"
+ tags = var.tags
assume_role_policy = <