Coder Social home page Coder Social logo

terraform-heroku's Introduction

terraform-heroku

Summary

Terraform configuration template to provision a new Heroku app. Utilizes the Terraform Heroku provider.

The base config will provision a new Heroku app (with no buildpack assignment) and an associated PostgreSQL database add-on. The default deployment region is 'us', but this can be modified. The specific database plan can be customized with parameters in terraform.tfvars. Additional functionality is available to configure a custom domain name, as well as to provision a Heroku Scheduler add-on. Configurations for those need to be uncommented in main.tf to use, and parameters configured appropriately in terraform.tfvars.

The Terraform heroku_app resource provides an argument to update Heroku configuration variables. This can be accomplished here by uncommenting that argument in main.tf, and editing the 'heroku_config_vars' map variable in terraform.tfvars.

The Terraform state file is not stored with the code repository, and must be maintained locally.

Requirements

Usage

  • Clone the repository
  • Customize the parameters in the terraform.tfvars file. Minimum required updates are 'heroku_email', 'heroku_api_key', and 'heroku_app_name'.
  • Customize additional terraform.tfvars parameters as applicable for deployment.
  • Comment out, or uncomment, configuration for custom domain name, and database & scheduler add-ons in main.tf as applicable for deployment.
  • Run terraform init. This step only required for first run or otherwise if the heroku provider is not installed.
  • Apply the configuration:
terraform plan
terraform apply

To-Do

  • Provide for remote state file storage, most likely in S3.
  • Implement tests.

License

This is open-sourced software licensed under the MIT license.

terraform-heroku's People

Contributors

clayshek avatar

Watchers

 avatar

Forkers

othello1111

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.