Skip to content

Commit

Permalink
putting terraform in /aws directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed May 23, 2024
1 parent 23b0a70 commit 5a90479
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
Expand Down

0 comments on commit 5a90479

Please sign in to comment.