Skip to content

Commit

Permalink
Fix api_gateway_authorizer documentation example
Browse files Browse the repository at this point in the history
  • Loading branch information
npellegrin committed Jul 25, 2023
1 parent cc19bfd commit 49a63c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/r/api_gateway_authorizer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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" {
Expand Down

0 comments on commit 49a63c8

Please sign in to comment.