From 47717b9ac3c4083145fbe78918b486d2a7b88c4d Mon Sep 17 00:00:00 2001 From: Eric Lee Date: Wed, 30 Oct 2019 13:39:20 -0700 Subject: [PATCH] Docs: use aws_iam_role_policy_attachment instead of aws_iam_policy_attachment to discourage using the old attachment method --- website/docs/r/s3_bucket.html.markdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/docs/r/s3_bucket.html.markdown b/website/docs/r/s3_bucket.html.markdown index 0f8fe0bcc3d6..4e31bd8523b6 100644 --- a/website/docs/r/s3_bucket.html.markdown +++ b/website/docs/r/s3_bucket.html.markdown @@ -245,9 +245,8 @@ resource "aws_iam_policy" "replication" { POLICY } -resource "aws_iam_policy_attachment" "replication" { - name = "tf-iam-role-attachment-replication-12345" - roles = ["${aws_iam_role.replication.name}"] +resource "aws_iam_role_policy_attachment" "replication" { + role = "${aws_iam_role.replication.name}" policy_arn = "${aws_iam_policy.replication.arn}" }