Skip to content

Instantly share code, notes, and snippets.

@medwig
Created April 7, 2019 16:57
Show Gist options
  • Save medwig/231f7e1bfea1212ba596be0c39c4e9eb to your computer and use it in GitHub Desktop.
Save medwig/231f7e1bfea1212ba596be0c39c4e9eb to your computer and use it in GitHub Desktop.
Install Terraform in AWS Codebuild
version: 0.2
phases:
install:
commands:
# install terraform binary
- curl -s -qL -o terraform_install.zip https://releases.hashicorp.com/terraform/0.11.13/terraform_0.11.13_linux_amd64.zip
- unzip terraform_install.zip -d /usr/bin/
- chmod +x /usr/bin/terraform
finally:
- terraform --version
pre_build:
commands:
- echo Entered the pre_build phase...
finally:
- echo This always runs even if the login command fails
build:
commands:
- echo Entered the build phase...
finally:
- echo This always runs even if the install command fails
post_build:
commands:
- echo Entered the post_build phase...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment