cloudposse/iam-role

A Terraform module that creates IAM role with provided JSON IAM policies documents.

Terraform module
AWS
available
Placeholder. This template is not in the library yet. Deploy opens the platform so you can start from your own repository; tell us there if you want this one.
Downloads
18.9M
Version
1.0.0
Published
2026-05-20
License
Apache-2.0
Maintainer
cloudposse

About

A Terraform module that creates IAM role with provided JSON IAM policies documents.

Maintained by cloudposse on the Terraform Registry. Latest version 1.0.0, 18.9M downloads. Requires providers: aws >= 2.0.

Deploy creates a StackGuardian workflow from the module's GitHub repository, pinned to this version. You set the inputs, see the plan, then approve the apply.

Use cases

  • Least-privilege roles created from a reviewed template, not copied by hand.
  • Workload identity for pods, functions and CI without long-lived keys.
  • Access changes that leave an audit trail.

Inputs

Required inputs:

  • role_description — string

35 inputs, 5 outputs in total. The full list, with defaults and descriptions, is on the registry page.

What it creates

  • aws_iam_role
  • aws_iam_policy
  • aws_iam_role_policy
  • aws_iam_role_policy_attachment × 2
  • aws_iam_instance_profile

How it runs on StackGuardian

Terraform workflow from the module's GitHub repository: plan, policy check, approval, then apply.

Plan
Policy check
Approval
Apply

Approvals happen in StackGuardian. An agent can never approve its own run. Every run keeps its plan, policy results and approver in the audit log.

Pick a template. Deploy it with guardrails.