Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miquido/terraform-iam-policies


https://github.com/miquido/terraform-iam-policies

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

[![Miquido][logo]](https://www.miquido.com/)

# miquido-iam-policies
The module provisions:

- IAM policies allowing for AWS keys management, permiting password change and MFA enforcing
---
## Usage

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

## Makefile Targets
```text
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](#requirement\_terraform) | >= 0.13 |
| [aws](#requirement\_aws) | ~> 3.0 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | ~> 3.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_iam_policy.strict-mfa](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_policy_document.strict-mfa](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [path](#input\_path) | Path in which to create the policy. See IAM Identifiers for more information. | `string` | `"/policies/"` | no |
| [strict\_mfa\_enabled](#input\_strict\_mfa\_enabled) | Whether to create Strict MFA policy | `bool` | `true` | no |
| [strict\_mfa\_name](#input\_strict\_mfa\_name) | Name prefix of Strict MFA Policy | `string` | `"StrictMFA"` | no |

## Outputs

| Name | Description |
|------|-------------|
| [strict\_mfa\_arn](#output\_strict\_mfa\_arn) | The ARN assigned by AWS to this policy. |
| [strict\_mfa\_id](#output\_strict\_mfa\_id) | The policy's ID. |
| [strict\_mfa\_name](#output\_strict\_mfa\_name) | The name of the policy. |

## Developing

1. Make changes in terraform files

2. Regenerate documentation

```bash
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](https://miquido.com)

### Contributors

| [![Konrad Obal][k911_avatar]][k911_homepage]
[Konrad Obal][k911_homepage] |
|---|

[k911_homepage]: https://github.com/k911
[k911_avatar]: https://github.com/k911.png?size=150

[logo]: https://www.miquido.com/img/logos/logo__miquido.svg
[website]: https://www.miquido.com/
[gitlab]: https://gitlab.com/miquido
[github]: https://github.com/miquido
[bitbucket]: https://bitbucket.org/miquido