Create many AWS IAM groups at once.
Each property of the groups
object is the name of the group and its value is a group
object
The group
object can take the following properties:
Name | Description | Type | Required |
---|---|---|---|
policies | List of policies to attach | list(string) |
no |
assume_roles | List of roles users of this group can assume | list(string) |
no |
module "iam_groups" {
source = "github.com/olivr-com/terraform-aws-bulk-iam-groups"
groups = {
SuperAdministrators = {
policies = ["arn:aws:iam::aws:policy/AdministratorAccess"]
assume_roles = [
"arn:aws:iam::111111111111:role/AdministratorRole",
"arn:aws:iam::222222222222:role/AdministratorRole"
]
}
Administrators = {
policies = ["arn:aws:iam::aws:policy/AdministratorAccess"]
}
SomeOtherGroup = {}
}
output "iam_groups" {
value = module.iam_groups.groups
}
Name | Version |
---|---|
terraform | ~> 0.12.24 |
aws | ~> 2.58 |
Name | Version |
---|---|
aws | ~> 2.58 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
groups | Groups to create. See _var_groups.example.tfvars.json | map(map(list(string))) |
n/a | yes |
Name | Description |
---|---|
groups | Created groups in the format { name = { name, arn }} |
Create a new issue on this GitHub repository.
All contributions are welcome! Please see the docs/CONTRIBUTING.md
This project is licensed under the Apache 2.0 License - see the LICENSE file for details
Olivr is an AI co-founder for your startup.