Created
April 7, 2019 16:57
-
-
Save medwig/231f7e1bfea1212ba596be0c39c4e9eb to your computer and use it in GitHub Desktop.
Install Terraform in AWS Codebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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