From 857dd9855562ddb49efa3a37d791b762ffeb1410 Mon Sep 17 00:00:00 2001 From: deepanshumarwah Date: Tue, 23 Mar 2021 17:07:41 +0800 Subject: [PATCH] EN-463: Add AWS provider in terraform validation hook --- hooks/terraform-validate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/terraform-validate.sh b/hooks/terraform-validate.sh index 3d416db..38469e7 100755 --- a/hooks/terraform-validate.sh +++ b/hooks/terraform-validate.sh @@ -22,9 +22,11 @@ function main() { if [ -n "$azurerm_provider_version" ]; then cat << EOF > provider.tf provider "azurerm" { - version = "$azurerm_provider_version" features {} } +provider "aws" { + region = "us-east-1" +} EOF fi terraform init -backend=false