Skip to main content

Module: iam-user

Terraform Module to provision a basic IAM user suitable for humans. It will establish a login profile and associate the user with IAM groups.

We do not recommend creating IAM users for any other purpose. For external systems (e.g. CI/CD) check out our terraform-aws-iam-system-user module.

Usage

First, make sure all users register with keybase.io to faciliate public key encryption (PKE). Then use their keybase username to automatically encrypt their AWS secret. It's that easy!

module "jack" {
source = "cloudposse/iam-user/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
name = "jack"
user_name = "[email protected]"
pgp_key = "keybase:jack"
groups = ["admins"]
}

NOTE: We recommend using email addresses for IAM user accounts.

Examples

module "jill" {
source = "cloudposse/iam-user/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
name = "jill"
user_name = "[email protected]"
pgp_key = "keybase:jill"
groups = ["engineering"]
}