Data Source: aws_iam_role

This data source can be used to fetch information about a specific IAM role. By using this data source, you can reference IAM role properties without having to hard code ARNs as input.

Example Usage

data "aws_iam_role" "example" {
  name = "an_example_role_name"
}

Argument Reference

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

role_last_used