Skip to content

Commit 5fadb1a

Browse files
Pranav-Dakshinapranav-chefman
authored andcommitted
Fixed: runtime block name
- runtime changed to block from string in the prev commit
1 parent 02d51a9 commit 5fadb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ resource "aws_appsync_resolver" "this" {
191191
}
192192

193193
# code is required when runtime is APPSYNC_JS
194-
code = try(each.value.kind == "PIPELINE" && each.value.runtime == "APPSYNC_JS", false) ? each.value.code : null
194+
code = try(each.value.kind == "PIPELINE" && each.value.runtime.name == "APPSYNC_JS", false) ? each.value.code : null
195195

196196
request_template = lookup(each.value, "request_template", tobool(lookup(each.value, "direct_lambda", false)) ? var.direct_lambda_request_template : try(each.value.kind == "PIPELINE" && each.value.runtime == "APPSYNC_JS", false) ? null : "{}")
197197
response_template = lookup(each.value, "response_template", tobool(lookup(each.value, "direct_lambda", false)) ? var.direct_lambda_response_template : try(each.value.kind == "PIPELINE" && each.value.runtime == "APPSYNC_JS", false) ? null : "{}")

0 commit comments

Comments
 (0)