Skip to content

Commit

Permalink
Merge pull request #34 from mulesoft-consulting/add-tags
Browse files Browse the repository at this point in the history
Add tags support
  • Loading branch information
angelconcepcion committed Jul 13, 2021
2 parents 6eac19f + fd5e477 commit c5adfa7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ Inputs
<td>String</td>
<td>Additional policy to associate with IAM Role (optional)</td>
</tr>
<tr>
<td><tt>tags</tt></td>
<td>Map</td>
<td> A map of tags to assign to the taggable resources. (optional)</td>
</tr>
</table>

Outputs
Expand Down
4 changes: 4 additions & 0 deletions role/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,7 @@ variable "default-actions-policy" {
}
POLICY
}

variable "tags" {
default = {}
}
2 changes: 2 additions & 0 deletions role/role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<POLICY
{
Expand All @@ -114,6 +115,7 @@ POLICY

resource "aws_iam_policy" "cht_iam_policy" {
name = var.role-name
tags = var.tags

policy = <<POLICY
{
Expand Down

0 comments on commit c5adfa7

Please sign in to comment.