From 93f3e203d5745c38afff17beb151a83912c8cc22 Mon Sep 17 00:00:00 2001 From: Shashi Kant Date: Tue, 18 Jun 2024 17:37:11 +0530 Subject: [PATCH] fixing aws path --- aws/tailcall.tf | 2 +- scripts/entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aws/tailcall.tf b/aws/tailcall.tf index dca793e..0e660a3 100644 --- a/aws/tailcall.tf +++ b/aws/tailcall.tf @@ -90,7 +90,7 @@ data "http" "bootstrap" { resource "local_sensitive_file" "bootstrap" { content_base64 = data.http.bootstrap.response_body_base64 - filename = "config/bootstrap" + filename = "BOOTSTRAP_PATH" } resource "aws_lambda_function" "tailcall" { diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 8e2afc3..b7b3d38 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -86,7 +86,8 @@ deploy() { setup_terraform awk -v org="\"$TERRAFORM_ORG\"" "{sub(/var.TERRAFORM_ORG/,org)}1" /aws/tailcall.tf > /tmp/temp1.tf awk -v workspace="\"$TERRAFORM_WORKSPACE\"" "{sub(/var.TERRAFORM_WORKSPACE/,workspace)}1" /tmp/temp1.tf > /tmp/temp2.tf - mv /tmp/temp2.tf tailcall.tf + awk -v boot_strap_path="config/$TC_CONFIG_DIR/bootstrap" "{sub(/BOOTSTRAP_PATH/,workspace)}1" /tmp/temp2.tf > /tmp/temp3.tf + mv /tmp/temp3.tf tailcall.tf terraform init echo "List: $(find /app -type f)" TF_LOG=DEBUG terraform apply -auto-approve