From 5a904793016ec5363017c62ad3e0f4fd9d911c72 Mon Sep 17 00:00:00 2001 From: Shashi Kant Date: Thu, 23 May 2024 22:56:16 +0000 Subject: [PATCH] putting terraform in /aws directory --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index dee1f75..adad33e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,8 +22,8 @@ setup_terraform() { TERRAFORM_VERSION=$(get_latest_version hashicorp terraform) wget -O /tmp/terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip unzip /tmp/terraform.zip -d /tmp && rm /tmp/terraform.zip - mv /tmp/*/terraform /usr/local/bin/terraform - chmod +x /usr/local/bin/terraform + mv /tmp/*/terraform /aws/terraform + chmod +x /aws/terraform } setup_flyctl() { @@ -34,8 +34,8 @@ setup_flyctl() { if [ "$PROVIDER" = "aws" ]; then cd /aws - terraform init - terraform apply -auto-approve + ./terraform init + ./terraform apply -auto-approve elif [ "$PROVIDER" = "fly" ]; then setup_flyctl cd /fly