12 lines
309 B
HCL
12 lines
309 B
HCL
module "iam" {
|
|
source = "terraform-aws-modules/iam/aws//modules/iam-group-with-policies"
|
|
version = "5.39.1"
|
|
|
|
name = "Team-${random_pet.this.id}"
|
|
create_group = true
|
|
custom_group_policy_arns = [
|
|
"arn:aws:iam::aws:policy/job-function/ViewOnlyAccess"
|
|
]
|
|
}
|
|
|
|
resource "random_pet" "this" {} |