Skip to content

Commit 5ac7b15

Browse files
authored
feat: add tags to ECS instance profile role (#21)
1 parent e64d842 commit 5ac7b15

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

modules/ecs-instance-profile/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ resource "aws_iam_role" "this" {
22
name = "${var.name}_ecs_instance_role"
33
path = "/ecs/"
44

5+
tags = var.tags
6+
57
assume_role_policy = <<EOF
68
{
79
"Version": "2008-10-17",

modules/ecs-instance-profile/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ variable "include_ssm" {
88
type = bool
99
default = false
1010
}
11+
12+
variable "tags" {
13+
description = "A map of tags to add to instance profile role"
14+
type = map(string)
15+
default = {}
16+
}

0 commit comments

Comments
 (0)