Skip to content

Commit

Permalink
fix(infra/backend-setup/iam_role/*): principal role as root account
Browse files Browse the repository at this point in the history
  • Loading branch information
plbalmeida committed Jan 25, 2024
1 parent 8bd3e33 commit fe4eb32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion infra/backend-setup/iam_role/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_iam_role" "role" {
Action = "sts:AssumeRole",
Effect = "Allow",
Principal = {
AWS = "arn:aws:iam::${var.account_id}:group/${var.group_name}"
AWS = "arn:aws:iam::${var.account_id}:root"
}
}
]
Expand Down
6 changes: 0 additions & 6 deletions infra/backend-setup/iam_role/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ variable "account_id" {
default = "413467296690"
}

variable "group_name" {
description = "IAM group name"
type = string
default = "admin"
}

variable "project_name" {
description = "Project name"
type = string
Expand Down

0 comments on commit fe4eb32

Please sign in to comment.