terraform-training/SecurityIdentityCompliance/Exercise2/main.tf
2024-05-30 14:28:14 +08:00

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" {}