This data source can be used to fetch information about a specific IAM policy.
data "aws_iam_policy" "example" {
arn = "arn:aws:iam::123456789012:policy/UsersManageOwnCredentials"
}
arn - (Required) ARN of the IAM policy. name - The name of the IAM policy. arn - The Amazon Resource Name (ARN) specifying the policy. path - The path to the policy. description - The description of the policy. policy - The policy document of the policy.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/iam_policy.html