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

https://github.com/launchbynttdata/tf-aws-module_primitive-iam_policy


https://github.com/launchbynttdata/tf-aws-module_primitive-iam_policy

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# tf-aws-module_primitive-iam_policy

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.0 |
| [aws](#requirement\_aws) | ~> 5.0 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 5.100.0 |

## Modules

No modules.

## Resources

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

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [policy\_name](#input\_policy\_name) | The name of the IAM policy. | `string` | n/a | yes |
| [tags](#input\_tags) | A map of tags to assign to the IAM policy. | `map(string)` | `{}` | no |
| [policy\_statement](#input\_policy\_statement) | The policy statements, supporting optional IAM conditions. |

map(object({
sid = string
actions = list(string)
resources = list(string)
conditions = optional(list(object({
test = string
variable = string
values = list(string)
})))
}))
| n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [policy\_arn](#output\_policy\_arn) | The ARN of the IAM policy. |
| [policy\_name](#output\_policy\_name) | The name of the IAM policy. |
| [policy\_id](#output\_policy\_id) | The ID of the IAM policy. |
| [policy\_document](#output\_policy\_document) | The policy document in JSON format. |
| [policy\_tags](#output\_policy\_tags) | The tags applied to the IAM policy. |