Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions terraform/aws-groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,19 @@ module "iam_read_only_group" {
}
}

//import ops-leads group
resource "aws_iam_group" "ops_leads_group" {
name = "ops-leads"
}

resource "aws_iam_group_policy_attachment" "admin"{
group = aws_iam_group.ops_leads_group.name
policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
}

resource "aws_iam_group_policy_attachment" "manageAccessKeys"{
group = aws_iam_group.ops_leads_group.name
policy_arn = "arn:aws:iam::035866691871:policy/ManageAccessKeys"
}


13 changes: 13 additions & 0 deletions terraform/imports.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
to = aws_iam_group.ops_leads_group
id = "ops-leads"
}
Comment thread
ale210 marked this conversation as resolved.

import {
to = aws_iam_group_policy_attachment.admin
id = "ops-leads/arn:aws:iam::aws:policy/AdministratorAccess"
}
import {
to = aws_iam_group_policy_attachment.manageAccessKeys
id = "ops-leads/arn:aws:iam::035866691871:policy/ManageAccessKeys"
}
Loading