* chore: add missing resources --------- Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
25 lines
525 B
Bash
Executable file
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 "$*"
|