Skip to content

miquido/terraform-iam-policies

Repository files navigation

Miquido

miquido-iam-policies

The module provisions:

  • IAM policies allowing for AWS keys management, permiting password change and MFA enforcing

Usage

module "iam-policies" {
  source = "./modules/iam-policies"
  strict_mfa_enabled = true
}

Makefile Targets

Available targets:

  help                                Help screen
  help/all                            Display help for all targets
  help/short                          This help short screen
  lint                                Lint Terraform code

Requirements

Name Version
terraform >= 0.13
aws ~> 3.0

Providers

Name Version
aws ~> 3.0

Modules

No modules.

Resources

Name Type
aws_iam_policy.strict-mfa resource
aws_caller_identity.current data source
aws_iam_policy_document.strict-mfa data source

Inputs

Name Description Type Default Required
path Path in which to create the policy. See IAM Identifiers for more information. string "/policies/" no
strict_mfa_enabled Whether to create Strict MFA policy bool true no
strict_mfa_name Name prefix of Strict MFA Policy string "StrictMFA" no

Outputs

Name Description
strict_mfa_arn The ARN assigned by AWS to this policy.
strict_mfa_id The policy's ID.
strict_mfa_name The name of the policy.

Developing

  1. Make changes in terraform files

  2. Regenerate documentation

    bash <(git archive [email protected]:miquido/terraform/terraform-readme-update.git master update.sh | tar -xO)
  3. Run lint

    make lint
    

Copyright

Copyright © 2017-2022 Miquido

Contributors

Konrad Obal
Konrad Obal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published