AWS Fundamentals Logo
AWS Fundamentals
Data Source

aws_iam_role

Provides details about a specific Iam Role.

View Full Documentation on Terraform Registry

Sample HCL Configuration

A minimal configuration to get started. Refer to the Terraform Registry docs for all available arguments.

main.tf
data "aws_iam_role" "example" {
  # Required arguments
  # Refer to the Terraform Registry docs for details
}

Get the IAM (Identity & Access Management) Cheat Sheet

Everything you need to know about IAM (Identity & Access Management) on one page. HD quality, print-friendly.

Download Free Infographic