Skip to content

Commit 6274e94

Browse files
Pranav-Dakshinapranav-chefmanantonbabenko
authored
feat: Add support to configure batch resolvers (#41)
Co-authored-by: Pranav Dakshinamurthy <pdakshinamurthy@chefman.com> Co-authored-by: Anton Babenko <anton@antonbabenko.com>
1 parent f2f72c3 commit 6274e94

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/complete/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ EOF
205205
}
206206

207207
"Post.id" = {
208-
data_source = "lambda2"
209-
direct_lambda = true
208+
data_source = "lambda2"
209+
direct_lambda = true
210+
max_batch_size = 10
210211
}
211212

212213
"Post.title" = {

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ resource "aws_appsync_resolver" "this" {
203203
ttl = lookup(each.value, "caching_ttl", var.resolver_caching_ttl)
204204
}
205205
}
206+
207+
max_batch_size = lookup(each.value, "max_batch_size", null)
206208
}
207209

208210
# Functions

0 commit comments

Comments
 (0)