Sha256: d25bcc8f3d8b5d4b19e735758b96fc692443fa2924f5449ffa826f1b1118ddea

Contents?: true

Size: 504 Bytes

Versions: 18

Compression:

Stored size: 504 Bytes

Contents

#!/bin/bash

set -eu

TERRAFORM_VERSION=latest

git clone https://github.com/tfutils/tfenv.git ~/.tfenv
echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bash_profile
export PATH="$HOME/.tfenv/bin:$PATH"
tfenv install $TERRAFORM_VERSION
tfenv use $TERRAFORM_VERSION

# Generate wrapper so dont have to worry about adding .tfenv/bin to PATH in codebuild env
cat << 'EOL' > /usr/local/bin/terraform
#!/bin/bash
export PATH="$HOME/.tfenv/bin:$PATH"
exec terraform "$@"
EOL
chmod +x /usr/local/bin/terraform

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
terraspace-1.1.7 .cody/shared/script/install/terraform.sh
terraspace-1.1.6 .cody/shared/script/install/terraform.sh
terraspace-1.1.5 .cody/shared/script/install/terraform.sh
terraspace-1.1.4 .cody/shared/script/install/terraform.sh
terraspace-1.1.3 .cody/shared/script/install/terraform.sh
terraspace-1.1.2 .cody/shared/script/install/terraform.sh
terraspace-1.1.1 .cody/shared/script/install/terraform.sh
terraspace-1.1.0 .cody/shared/script/install/terraform.sh
terraspace-1.0.6 .cody/shared/script/install/terraform.sh
terraspace-1.0.5 .cody/shared/script/install/terraform.sh
terraspace-1.0.4 .cody/shared/script/install/terraform.sh
terraspace-1.0.3 .cody/shared/script/install/terraform.sh
terraspace-1.0.2 .cody/shared/script/install/terraform.sh
terraspace-1.0.1 .cody/shared/script/install/terraform.sh
terraspace-1.0.0 .cody/shared/script/install/terraform.sh
terraspace-0.7.2 .cody/shared/script/install/terraform.sh
terraspace-0.7.1 .cody/shared/script/install/terraform.sh
terraspace-0.7.0 .cody/shared/script/install/terraform.sh