We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64d842 commit 5ac7b15Copy full SHA for 5ac7b15
modules/ecs-instance-profile/main.tf
@@ -2,6 +2,8 @@ resource "aws_iam_role" "this" {
2
name = "${var.name}_ecs_instance_role"
3
path = "/ecs/"
4
5
+ tags = var.tags
6
+
7
assume_role_policy = <<EOF
8
{
9
"Version": "2008-10-17",
modules/ecs-instance-profile/variables.tf
@@ -8,3 +8,9 @@ variable "include_ssm" {
type = bool
default = false
10
}
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