Skip to content

Commit

Permalink
Merge pull request #2 from ace-teknologi/feature/1/add-tags-to-resources
Browse files Browse the repository at this point in the history
tags added to user_roles
  • Loading branch information
sjauld authored Aug 1, 2019
2 parents db10066 + 6b2f2ba commit 62aefdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.0.2 (2019-08-01)

* Tags added!

## v0.0.1 (2019-07-29)

* Initial release!
* Initial release!
6 changes: 5 additions & 1 deletion roles/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ data "aws_iam_policy_document" "human_assume" {
resource "aws_iam_role" "devops" {
name = var.devops_name
assume_role_policy = data.aws_iam_policy_document.human_assume.json
tags = local.tags
}

resource "aws_iam_role_policy" "devops" {
Expand Down Expand Up @@ -217,6 +218,7 @@ data "aws_iam_policy_document" "devops" {
resource "aws_iam_role" "readonly" {
name = var.readonly_name
assume_role_policy = data.aws_iam_policy_document.human_assume.json
tags = local.tags
}

resource "aws_iam_policy_attachment" "readonly" {
Expand All @@ -232,6 +234,7 @@ resource "aws_iam_policy_attachment" "readonly" {
resource "aws_iam_role" "superuser" {
name = var.superuser_name
assume_role_policy = data.aws_iam_policy_document.human_assume.json
tags = local.tags
}

resource "aws_iam_role_policy" "superuser" {
Expand All @@ -255,6 +258,7 @@ data "aws_iam_policy_document" "superuser" {
resource "aws_iam_role" "support" {
name = var.support_name
assume_role_policy = data.aws_iam_policy_document.human_assume.json
tags = local.tags
}

resource "aws_iam_policy_attachment" "support" {
Expand Down Expand Up @@ -284,6 +288,7 @@ data "aws_iam_policy_document" "machine_assume" {
resource "aws_iam_role" "metrics" {
name = var.metrics_name
assume_role_policy = data.aws_iam_policy_document.machine_assume.json
tags = local.tags
}

resource "aws_iam_role_policy" "metrics" {
Expand Down Expand Up @@ -317,4 +322,3 @@ data "aws_iam_policy_document" "metrics" {
resources = ["*"]
}
}

2 changes: 1 addition & 1 deletion user/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ resource "aws_iam_user_login_profile" "main" {
resource "aws_iam_user_group_membership" "main" {
user = aws_iam_user.main.name
groups = var.groups
}
}

0 comments on commit 62aefdf

Please sign in to comment.