terraform.aws-baseline-infra/modules/security_identity_compliance/iam-group
2024-03-26 15:31:28 +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: decoupled iam group from iam user module. create new iam-group module 2022-10-19 22:09:15 +08:00
README.md UPD: decoupled iam group from iam user module. create new iam-group module 2022-10-19 22:09:15 +08:00
variables.tf FIX: fixed bugs 2024-03-26 15:22:14 +08:00
versions.tf UPD: adding secretsmanager arn to output 2024-03-26 15:31:28 +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
}