From 49a63c8f59a41feb5125136c2580edcb3614e52e Mon Sep 17 00:00:00 2001 From: Nicolas Pellegrin Date: Tue, 25 Jul 2023 20:01:22 +0200 Subject: [PATCH] Fix api_gateway_authorizer documentation example --- website/docs/r/api_gateway_authorizer.html.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/r/api_gateway_authorizer.html.markdown b/website/docs/r/api_gateway_authorizer.html.markdown index 5c4c1a49cf5..914eb60ef62 100644 --- a/website/docs/r/api_gateway_authorizer.html.markdown +++ b/website/docs/r/api_gateway_authorizer.html.markdown @@ -24,13 +24,13 @@ resource "aws_api_gateway_rest_api" "demo" { name = "auth-demo" } -data "aws_iam_role_policy_document" "invocation_assume_role" { +data "aws_iam_policy_document" "invocation_assume_role" { statement { effect = "Allow" principals { - type = "Service" - identifier = ["apigateway.amazonaws.com"] + type = "Service" + identifiers = ["apigateway.amazonaws.com"] } actions = ["sts:AssumeRole"] @@ -40,7 +40,7 @@ data "aws_iam_role_policy_document" "invocation_assume_role" { resource "aws_iam_role" "invocation_role" { name = "api_gateway_auth_invocation" path = "/" - assume_role_policy = data.aws_iam_role_policy_document.invocation_assume_role.json + assume_role_policy = data.aws_iam_policy_document.invocation_assume_role.json } data "aws_iam_policy_document" "invocation_policy" {