Skip to content

Commit

Permalink
calling setup_terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed May 23, 2024
1 parent e49f350 commit 9d46191
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ setup_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
ls /tmp
mv /tmp/*/terraform /aws/terraform
mv /tmp/*/terraform /usr/local/bin/terraform
ls /aws
chmod +x /aws/terraform
}
Expand All @@ -36,8 +36,9 @@ setup_flyctl() {

if [ "$PROVIDER" = "aws" ]; then
cd /aws
./terraform init
./terraform apply -auto-approve
setup_terraform
terraform init
terraform apply -auto-approve
elif [ "$PROVIDER" = "fly" ]; then
setup_flyctl
cd /fly
Expand Down

0 comments on commit 9d46191

Please sign in to comment.