terraform-provider-stackitp.../sample/tofu.sh
Marcel S. Henselin 70db08f43f
Feat/mssql alpha instance (#7)
* chore: add missing resources

---------

Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 11:55:29 +01:00

25 lines
525 B
Bash
Executable file

#!/usr/bin/env bash
# Copyright (c) STACKIT
# ./tofu.sh apply > >(tee -a stdout.log) 2> >(tee -a stderr.log >&2)
# copy or rename sample.tfrc.example and adjust it
TERRAFORM_CONFIG=$(pwd)/sample.tfrc
export TERRAFORM_CONFIG
parsed_options=$(
getopt -n "$0" -o l -- "$@"
) || exit
eval "set -- $parsed_options"
while [ "$#" -gt 0 ]; do
case $1 in
(-l) TF_LOG=TRACE
export TF_LOG
shift;;
(--) shift; break;;
(*) echo "Unknown option ${1}" # should never be reached.
esac
done
tofu "$*"