Skip to content

Commit 7a5b880

Browse files
authored
docs: Add AWS_IAM authorization example (#146)
1 parent 431c09f commit 7a5b880

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ module "api_gateway" {
8787
}
8888
}
8989
90+
"GET /some-route-with-iam" = {
91+
authorization_type = "AWS_IAM"
92+
93+
integration = {
94+
uri = "arn:aws:lambda:eu-west-1:052235179155:function:my-function"
95+
}
96+
}
97+
9098
"$default" = {
9199
integration = {
92100
uri = "arn:aws:lambda:eu-west-1:052235179155:function:my-default-function"

examples/complete-http/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ module "api_gateway" {
104104
}
105105
}
106106

107+
"GET /some-route-with-iam" = {
108+
authorization_type = "AWS_IAM"
109+
110+
integration = {
111+
uri = module.lambda_function.lambda_function_arn
112+
}
113+
}
114+
107115
"POST /start-step-function" = {
108116
integration = {
109117
type = "AWS_PROXY"

0 commit comments

Comments
 (0)