Giter VIP home page Giter VIP logo

cool-users-non-admin's Introduction

cool-users-non-admin

GitHub Build Status

This project is used to manage IAM user accounts for non-admin users. All admin users are set up in the cool-accounts repository (in the users subdirectory).

Pre-requisites

Your "users" provider must have AWS permissions to provision users and attach policies to them. We recommend creating your Users account via the cool-accounts repository.

Usage

  1. Create a Terraform workspace (if you haven't already done so) by running terraform workspace new <workspace_name>

  2. Create a <workspace_name>.tfvars file with all of the required variables (see Inputs below for details):

    users = [
      "firstname1.lastname1",
      "firstname2.lastname2",
      "firstname3.lastname3",
    ]
  3. Run the command terraform init.

  4. Run the command terraform apply -var-file=<workspace_name>.tfvars.

Requirements

Name Version
terraform ~> 1.0
aws ~> 3.38

Providers

Name Version
aws ~> 3.38
aws.users ~> 3.38
terraform n/a

Modules

No modules.

Resources

Name Type
aws_iam_user.users resource
aws_iam_user_policy_attachment.self_managed_creds_with_mfa resource
aws_iam_user_policy_attachment.self_managed_creds_without_mfa resource
aws_caller_identity.current data source
terraform_remote_state.users data source

Inputs

Name Description Type Default Required
aws_region The AWS region where the non-global resources are to be provisioned (e.g. "us-east-1"). string "us-east-1" no
non_self_admin_users A list containing the usernames of non-admin users that are not allowed to administer their own accounts. Example: [ "service-account1", "service-account2", "service-account3" ] list(string) [] no
tags Tags to apply to all AWS resources created. map(string) {} no
users A map whose keys are the usernames of each non-admin user and whose values are a map containing supported user attributes. The only currently-supported attribute is "require_mfa" (boolean). Example: { "firstname1.lastname1" = { "require_mfa" = false }, "firstname2.lastname2" = { "require_mfa" = true }, "firstname3.lastname3" = { "require_mfa" = false } } map(map(string)) n/a yes

Outputs

No outputs.

Notes

Running pre-commit requires running terraform init in every directory that contains Terraform code. In this repository, this is only the main directory.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

cool-users-non-admin's People

Contributors

mcdonnnj avatar jsf9k avatar dav3r avatar felddy avatar hillaryj avatar

Watchers

 avatar

Forkers

j-wott

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.