#!/bin/sh

ENVIRONMENT=$1
shift

case $ENVIRONMENT in
  beanstalk_app)
    ;;
  development)
    ;;
  production)
    ;;
  *)
    echo "First argument must be beanstalk_app, development, or production"
    exit 1
    ;;
esac

exec wtf \
    -a twitch-core-services \
    -s "terraform/${ENVIRONMENT}" \
    -S "s3://tw-devtools/tfstate/dta/rockpaperscissors/terraform/${ENVIRONMENT}" \
    "$@"
