8000 GitHub - opsstation/terraform-aws-mfa
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

opsstation/terraform-aws-mfa

Repository files navigation

Terraform Infrastructure as Code (IaC) - aws mfa Module

Table of Contents

Introduction

This Terraform module creates structured mfa for aws resources with specific attributes.

Usage

  • Use the module by referencing its source and providing the required variables.
module "mfa" {
  source      = "git::https://github.com/opsstation/terraform-aws-mfa.git?ref=v1.0.0"
  name        = "mfa1"
  environment = "test"
  users       = []
  groups      = []

}

Please ensure you specify the correct 'source' path for the module.

Module Inputs

  • name: The name of the application.
  • environment: The environment (e.g., "test", "production").
  • label_order: Label order, e.g. name,application.
  • enabled: Flag to control the mfa creation.
  • managedby: ManagedBy, eg 'opsstation'.
  • floating_ip : Boolean to control whether floating IPs should be created.

Module Outputs

  • This module currently does not provide any outputs.

Examples

For detailed examples on how to use this module, please refer to the 'example' directory within this repository.

Authors

Your Name Replace '[License Name]' and '[Your Name]' with the appropriate license and your information. Feel free to expand this README with additional details or usage instructions as needed for your specific use case.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Requirements

Name Version
terraform >= 1.7.3
aws >= 5.31.0

Providers

Name Version
aws >= 5.31.0

Modules

Name Source Version
labels git::https://github.com/opsstation/terraform-aws-labels.git v1.0.0

Resources

Name Type
aws_iam_group_policy_attachment.assign_force_mfa_policy_to_groups resource
aws_iam_policy.enable_mfa resource
aws_iam_user_policy_attachment.assign_force_mfa_policy_to_users resource
aws_iam_policy_document.enable_mfa data source

Inputs

Name Description Type Default Required
environment Environment (e.g. prod, dev, staging). string "" no
groups enable MFA for the members in these groups list(string) [] no
label_order Label order, e.g. name,application. list(any)
[
"name",
"environment"
]
no
managedby ManagedBy, eg 'opsstation'. string "opsstation" no
name Name (e.g. test or mfa). string n/a yes
path The path of the policy in MFA. string "/" no
repository Terraform current module repo string "https://github.com/opsstation/terraform-aws-mfa" no
tags Additional tags (e.g. map(BusinessUnit,XYZ). map(any) {} no
users enable MFA for these users list(string) [] no

Outputs

Name Description
iam-arn The ARN (Amazon Resource Name) of the IAM policy with MFA (Multi-Factor Authentication) enabled.
tags_all All tags associated with the IAM policy with MFA enabled.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0