Data Source: aws_iam_policy

This data source can be used to fetch information about a specific IAM policy.

Example Usage

By ARN

data "aws_iam_policy" "example" {
  arn = "arn:aws:iam::123456789012:policy/UsersManageOwnCredentials"
}

By Name

data "aws_iam_policy" "example" {
  name = "test_policy"
}

Argument Reference

Attribute Reference

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