Skip to content

hadenlabs/terraform-aws-iam-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Latest Release Lint CI Test pre-commit Conventional Commits KeepAChangelog

terraform-aws-iam-user

terraform-aws-iam-user for project

Requirements

This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:

Usage

  module "main" {
    source  = "hadenlabs/iam-user/aws"
    version = "0.0.0"

    username   = var.username
    first_name = var.first_name
    public_key = file(var.public_key)
    path       = var.path
  }

Full working examples can be found in examples folder.

Examples

common

  module "main" {
      source  = "hadenlabs/iam-user/aws"
      version = "0.0.0"

      username   = var.username
      first_name = var.first_name
      public_key = file(var.public_key)
      path       = var.path
  }

Requirements

Name Version
terraform >= 0.13
aws >=3.2.0

Providers

Name Version
aws >=3.2.0

Modules

No modules.

Resources

Name Type
aws_iam_access_key.this resource
aws_iam_policy.access_key resource
aws_iam_policy.mfa resource
aws_iam_policy.password resource
aws_iam_user.this resource
aws_iam_user_policy_attachment.access_key resource
aws_iam_user_policy_attachment.mfa resource
aws_iam_user_policy_attachment.password resource
aws_iam_user_ssh_key.this resource
aws_caller_identity.self data source
aws_iam_policy_document.access_key data source
aws_iam_policy_document.enforce_mfa_device data source
aws_iam_policy_document.password data source

Inputs

Name Description Type Default Required
first_name first name user string n/a yes
password_reset_required password reset required enabled bool false no
path path of user string null no
public_key content of file public key string null no
username username or alias string n/a yes

Outputs

Name Description
access_key instance access_key
ssh_key instance aws_iam_user_ssh_key
user instance aws_iam_user

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Development

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub

  2. Clone the project to your own machine

  3. Commit changes to your own branch

  4. Push your work back up to your fork

  5. Submit a Pull Request so that we can review your changes

NOTE: Be sure to rebase the latest changes from "upstream" before making a pull request!

Module Versioning

This Module follows the principles of Semantic Versioning (SemVer).

Using the given version number of MAJOR.MINOR.PATCH, we apply the following constructs:

  1. Use the MAJOR version for incompatible changes.
  2. Use the MINOR version when adding functionality in a backwards compatible manner.
  3. Use the PATCH version when introducing backwards compatible bug fixes.

Backwards compatibility in 0.0.z and 0.y.z version

  • In the context of initial development, backwards compatibility in versions 0.0.z is not guaranteed when z is increased. (Initial development)
  • In the context of pre-release, backwards compatibility in versions 0.y.z is not guaranteed when y is increased. (Pre-release)

Copyright

Copyright Β© 2018-2021 Hadenlabs

Trademarks

All other trademarks referenced herein are the property of their respective owners.

License

The code and styles are licensed under the LGPL-3.0 license See project license..

Don't forget to 🌟 Star 🌟 the repo if you like terraform-aws-iam-user

Your feedback is appreciated