terraform.aws-baseline-infra/modules/security_identity_compliance/iam-user
2022-10-19 22:09:15 +08:00
..
main.tf UPD: decoupled iam group from iam user module. create new iam-group module 2022-10-19 22:09:15 +08:00
outputs.tf UPD: added iam group support 2022-09-16 10:37:28 +08:00
README.md UPD: moved selfservice policy to module 2022-10-19 19:11:13 +08:00
variables.tf UPD: decoupled iam group from iam user module. create new iam-group module 2022-10-19 22:09:15 +08:00

iam-user module

Module for creating IAM user. Credentials, if any, will be stored in secretsmanager

Example

module iam-user {
  source = "../../modules/security_identity_compliance/iam-user"

  default-tags    = local.default-tags
  iam-user-name   = var.iam-user-name
  iam-user-policy = ""
  iam-user-policy-name = "SelfServicePermissions"
  create-access-key = false
  create-password = false
  managed-policy-arns = ["arn:aws:iam::aws:policy/job-function/ViewOnlyAccess"]
  create-group = true
  add-to-groups = []
  iam-group-name = var.iam-group-name
}

output iam-user-arn {
  value = module.iam-user.iam-user-arn
}