diff --git a/website/docs/d/iam_role.html.markdown b/website/docs/d/iam_role.html.markdown
index b0e5bc85077..75f3a18126a 100644
--- a/website/docs/d/iam_role.html.markdown
+++ b/website/docs/d/iam_role.html.markdown
@@ -16,7 +16,7 @@ properties without having to hard code ARNs as input.
```hcl
data "aws_iam_role" "example" {
- role_name = "an_example_role_name"
+ name = "an_example_role_name"
}
```