From 85c8de456955c727d53251b7e3c84a37ea2a5b07 Mon Sep 17 00:00:00 2001 From: Maksym Mykytyn Date: Wed, 26 Nov 2025 19:35:23 +0200 Subject: [PATCH] docs: add authorization_type AWS_IAM usage example --- README.md | 8 ++++++++ examples/complete-http/main.tf | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/README.md b/README.md index 2f37273..c31c912 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,14 @@ module "api_gateway" { } } + "GET /some-route-with-iam" = { + authorization_type = "AWS_IAM" + + integration = { + uri = "arn:aws:lambda:eu-west-1:052235179155:function:my-function" + } + } + "$default" = { integration = { uri = "arn:aws:lambda:eu-west-1:052235179155:function:my-default-function" diff --git a/examples/complete-http/main.tf b/examples/complete-http/main.tf index 07cd360..197e2ba 100644 --- a/examples/complete-http/main.tf +++ b/examples/complete-http/main.tf @@ -104,6 +104,14 @@ module "api_gateway" { } } + "GET /some-route-with-iam" = { + authorization_type = "AWS_IAM" + + integration = { + uri = module.lambda_function.lambda_function_arn + } + } + "POST /start-step-function" = { integration = { type = "AWS_PROXY"