Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

aws-terraform-iam_resources/modules/user_group

This submodule creates an IAM User Group

Basic Usage

module "user_4" {
  source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-iam_resources//modules/user_group?ref=v0.0.1"

  user_names = ["testuser4a"]
}

Full working references are available at examples

Requirements

Name Version
aws >= 4.0

Providers

Name Version
aws >= 4.0

Modules

No Modules.

Resources

Name
aws_iam_group
aws_iam_group_membership
aws_iam_group_policy_attachment
aws_iam_user

Inputs

Name Description Type Default Required
existing_user_names A list of existing IAM users. These users will also be added to the created group. list(string) [] no
group_name The name to assign to the IAM Group created for these users. If omitted no group will be created. string "" no
policy_arns A list of managed IAM policies to attach to the IAM group list(string) [] no
policy_arns_count The number of managed policies to be applied to the role. number 0 no
user_names A list of user names. A new IAM user will be created for each element of this list list(string) [] no

Outputs

Name Description
group_arn IAM group ARN
group_id IAM group id
group_name IAM group name
user_names The list of created IAM users