Skip to content

Commit b4d121a

Browse files
authored
fix: Fixed datasource not found in functions (#34)
1 parent aa35bdd commit b4d121a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.64.0
3+
rev: v1.68.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -23,7 +23,7 @@ repos:
2323
- '--args=--only=terraform_standard_module_structure'
2424
- '--args=--only=terraform_workspace_remote'
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.1.0
26+
rev: v4.2.0
2727
hooks:
2828
- id: check-merge-conflict
2929
- id: end-of-file-fixer

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,6 @@ resource "aws_appsync_function" "this" {
217217

218218
request_mapping_template = lookup(each.value, "request_mapping_template", null)
219219
response_mapping_template = lookup(each.value, "response_mapping_template", null)
220+
221+
depends_on = [aws_appsync_datasource.this]
220222
}

0 commit comments

Comments
 (0)