Skip to content

Commit

Permalink
feat: add tags to ECS instance profile role (terraform-aws-modules#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
saulius authored Nov 9, 2020
1 parent e64d842 commit 5ac7b15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ecs-instance-profile/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ resource "aws_iam_role" "this" {
name = "${var.name}_ecs_instance_role"
path = "/ecs/"

tags = var.tags

assume_role_policy = <<EOF
{
"Version": "2008-10-17",
Expand Down
6 changes: 6 additions & 0 deletions modules/ecs-instance-profile/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ variable "include_ssm" {
type = bool
default = false
}

variable "tags" {
description = "A map of tags to add to instance profile role"
type = map(string)
default = {}
}

0 comments on commit 5ac7b15

Please sign in to comment.