Skip to content

Latest commit

 

History

History

iam

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Create a new IAM user on Amazon Web Services

Create an IAM user using the iam-user Terraform Registry module. If you want your AWS access secret to be encrypted consider generating a PGP key using keybase.

Authenticate

Assumption here is that we are using an owner account or an account with administrator permissions.

aws configure

You'll be prompted to supply

  • access key
  • secret key
  • region
  • output format

Copy sample configuration

cp terraform.tfvars.sample terraform.tfvars

Edit terraform.tfvars and update

  • name
  • permissions_boundary
  • pgp_key
  • region

Create a new user account

./create-iam.sh

Repeat the Authenticate step above with your new credentials. Don't forget to decrypt your secret if you supplied a PGP key.

Destroy the user account

./destroy-iam.sh