miquido / terraform-iam-group

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Miquido

miquido-terraform-iam-group


Terraform Module

GitLab Repository: https://gitlab.com/miquido/terraform/miquido-terraform-iam-group

Usage

module {
  source = "git::ssh://git@gitlab.com:miquido/terraform/terraform-iam-group.git?ref=master"

  name = "ExampleGroup"
  attach_policy_arns = []
  assume_role_policies = [
    {
      AccountIDs = ["00000000", "11111111"]
      RoleNames  = ["*AdminAccess"]
    },
    {
      AccountIDs = ["2222222"]
      RoleNames  = ["ReadOnlyAccess"]
    }
  ]
}

Requirements

Name Version
terraform >= 0.13
aws ~> 3.0

Providers

Name Version
aws ~> 3.0

Modules

No modules.

Resources

Name Type
aws_iam_group.main resource
aws_iam_group_policy_attachment.defaults resource
aws_iam_group_policy_attachment.permit-assume-role resource
aws_iam_policy.permit-assume-role resource
aws_iam_policy_document.permit-assume-role data source

Inputs

Name Description Type Default Required
assume_role_policies List of IAM Policies with Assume Role permissions to create and attach to created IAM Group
list(object({
AccountIDs = list(string)
RoleNames = list(string)
}))
[] no
attach_policy_arns List of IAM Policy ARNs to attach to the created IAM Group list(string) [] no
name The group's name. The name must consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-_.. Group names are not distinguished by case. For example, you cannot create groups named both ADMINS and admins. string n/a yes
path Path in which to create the group and policies. string "/users/" no

Outputs

Name Description
group_arn The ARN assigned by AWS for this group.
group_id The group's ID.
group_name The group's name.
group_unique_id The unique ID assigned by AWS for this group.

Makefile Targets

Available targets:

  help                                Help screen
  help/all                            Display help for all targets
  help/short                          This help short screen
  lint                                Lint Terraform code

Developing

  1. Make changes in terraform files

  2. Regenerate documentation

    bash <(git archive --remote=git@gitlab.com:miquido/terraform/terraform-readme-update.git master update.sh | tar -xO)
  3. Run lint

    make lint
    

Copyright

Copyright © 2017-2022 Miquido

Contributors

Konrad Obal
Konrad Obal

About


Languages

Language:HCL 87.1%Language:Makefile 12.9%