diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 39a4eaf..c9fd3cd 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -77,10 +77,9 @@ create_fly_toml() { deploy() { if [ "$PROVIDER" = "aws" ]; then # todo: handle name collisions - cp -r /aws/* /app cd / setup_terraform - awk -v org="\"$TERRAFORM_ORG\"" "{sub(/var.TERRAFORM_ORG/,org)}1" tailcall.tf > /tmp/temp1.tf + 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 terraform init