initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
resource aws_iam_role this {
|
||||
for_each = var.roles
|
||||
name = each.key
|
||||
assume_role_policy = each.value["assume_role_policy"]
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "fargate-policy-attachment" {
|
||||
for_each = aws_iam_role.this
|
||||
policy_arn = "arn:aws:iam::aws:policy/job-function/ViewOnlyAccess"
|
||||
role = each.value["name"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
variable roles {}
|
||||
Reference in New Issue
Block a user