Data Source: aws_iam_instance_profiles

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

Example Usage

data "aws_iam_instance_profiles" "example" {
  role_name = "an_example_iam_role_name"
}

Argument Reference

Attribute Reference

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