Sha256: 2711ef10daf13a75fc20a685617444ff687df321d5f08d7db68cf8f04c77e464

Contents?: true

Size: 997 Bytes

Versions: 2

Compression:

Stored size: 997 Bytes

Contents

#!/bin/bash
set -eux
# install terraform
git clone https://github.com/tfutils/tfenv.git ~/.tfenv
export PATH="$HOME/.tfenv/bin:$PATH"
tfenv install latest
tfenv use latest
terraform --version
type terraform # /home/circleci/.tfenv/bin/terraform
# shim for terraform since it's since is not the .tfenv/bin
mkdir -p /home/circleci/.local/bin
cat << 'EOF' > /home/circleci/.local/bin/terraform
export PATH="$HOME/.tfenv/bin:$PATH"
exec terraform "$@"
EOF
chmod +x /home/circleci/.local/bin/terraform

# install terraspace
bundle install
# shim for circleci
mv ~/.rubygems/bin/terraspace ~/.rubygems/bin/terraspace.rb
cat << 'EOF' > ~/.rubygems/bin/terraspace
#!/bin/bash
EXE=~/.rubygems/bin/terraspace.rb
if [ -f config/app.rb ]; then
  exec bundle exec $EXE "$@"
else
  exec $EXE "$@"
fi
EOF
chmod +x ~/.rubygems/bin/terraspace
terraspace --version

# install infracost
# https://www.infracost.io/docs/
curl -fsSL https://raw.githubusercontent.com/infracost/infracost/master/scripts/install.sh | sh

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terraspace_ci_circleci-0.2.0 lib/template/.circleci/bin/install
terraspace_ci_circleci-0.1.0 lib/template/.circleci/bin/install