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

13 lines
288 B
Bash
Raw Normal View History

2023-06-23 15:20:40 +02:00
#!/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