From b4d121afca2fe0347160a48d729c2b84698dc31b Mon Sep 17 00:00:00 2001 From: vikasgoyal09 <15920057+vikasgoyal09@users.noreply.github.com> Date: Thu, 21 Apr 2022 13:48:34 +0530 Subject: [PATCH] fix: Fixed datasource not found in functions (#34) --- .pre-commit-config.yaml | 4 ++-- main.tf | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a010fd..a0925b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.64.0 + rev: v1.68.1 hooks: - id: terraform_fmt - id: terraform_validate @@ -23,7 +23,7 @@ repos: - '--args=--only=terraform_standard_module_structure' - '--args=--only=terraform_workspace_remote' - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.2.0 hooks: - id: check-merge-conflict - id: end-of-file-fixer diff --git a/main.tf b/main.tf index 5ee3a66..962e569 100644 --- a/main.tf +++ b/main.tf @@ -217,4 +217,6 @@ resource "aws_appsync_function" "this" { request_mapping_template = lookup(each.value, "request_mapping_template", null) response_mapping_template = lookup(each.value, "response_mapping_template", null) + + depends_on = [aws_appsync_datasource.this] }