AWS Identity and Access Management Policy (IAM Policy) Terraform Module

Terraform module to provision IAM Policy on AWS.

Usage

Setup

Create a IAM Policy.

    module "iam_policy" {
        source          = "app.terraform.io/ncodelibrary/iam-policy/aws"
        version         = "0.1.2"
        identifier      = "example-iam-policy"
        description     = "IAM Policy for Cloudwatch Logs Administrator"
        rendered_policy = {
            actions = [
                "logs:*"
            ],
            resources = [
                "*",
            ]
        }
    }

Examples

Here are some working examples of using this module:

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a

Modules

No Modules.

Resources

Name
aws_iam_policy

Inputs

Name Description Type Default Required
append_workspace Appends the terraform workspace at the end of resource names, - bool true no
description Description for the IAM policy string "Created by terraform" no
identifier Name for the resources string n/a yes
path Path level of the IAM policy string "/" no
rendered_policy Rendered JSON with the policy to be used string n/a yes

Outputs

Name Description
output n/a

Contributing

If you want to contribute to this repository check all the guidelines specified here before submitting a new PR.