How to deploy ONLY with terraform


#1

Hi I wanna have my github repo with my terraform files be deployed to AWS via travis CI

Below is my travis file

.travis.yml

deploy:
  provider: script
  script: bash deploy.sh
  on:
    branch: master

Note: I have include my AWS SECRET_KEY and AWS_SECRET_ACCESS_KEY omitted from the example

deploy.sh

#!/bin/bash

set -o errexit -o nounset

terraform init

terraform plan

terraform apply

My build keep failing at execution of rake but I’m not running any rake task.

How can I totally skip that in travis and apply my deploy.sh only instead?

Also, I notice travis-ci is not include with terraform binary command. How do I fixed that?


#2

When reporting a problem, please include the build log URL that shows the issue, so we can help you better.

Thanks.