dayrize-usecase/pipeline/scripts/terraform-entrypoint.sh

13 lines
288 B
Bash
Executable File

#!/bin/sh
# We need to wait for a while and potentially retry to make sure both
# postgresql and airflow are ready so that terraform can operate on them
while :; do
sleep 10
terraform init &&
terraform plan &&
terraform apply -auto-approve &&
break
done