diff --git a/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown b/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown index b9789e2a6..b45fadeaf 100644 --- a/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown +++ b/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown @@ -24,7 +24,7 @@ data "aws_iam_policy_document" "b" { } resource "aws_s3_bucket_policy" "b" { - bucket = "${aws_s3_bucket.b.bucket}" + bucket = "${aws_s3_bucket.b.id}" policy = "${data.aws_iam_policy_document.b.json}" } ```