GithubHelp home page GithubHelp logo

secondstataion-infra's Introduction

Second Station Infrastructure

Installs the Second Station applica, aka AleaJactaRest, to heroku using Terraform scripts.

Instructions

Secrets

Create a secret.auto.tfvars file to store the e-mail associated with Heroku account and the API Key. Here's a sample:

heroku_api_key = "APIKEYAPIKEYAPIKEYAPIKEYAPIKEYAPIKEY"
email          = "[email protected]"

Configure

On the main.tf file, modify the resources:

  • heroku_app - if you want to modify the name, region, the confguration variables or the buildpacks
  • heroku_build - if you want a different project to be deployed, with a different version
  • heroku_formation - If you want to make your application run on a web and put more works to your application

Run commands

In a shell, run the terraform init command in order to terraform imports the heroku plugins.

If everything runs ok, run the terraform plan command to visualize what will be done, and then terraform apply to apply the modifications.

If you want to dispose all your modifications, run terraform destroy and everything will be destroyed on heroku side.

Requirements

Name Version
terraform 0.12.29
heroku 2.6

Providers

Name Version
heroku.second_station_app 2.6

Inputs

Name Description Type Default Required
application_buildpacks The application buildpacks list(string)
[
"heroku/gradle"
]
no
application_config_vars The internal variables object({})
{
"MODE": "server"
}
no
application_name The Application name string "secondstation" no
application_region The Region that the application will installed to string "eu" no
build_project_version The project version to make new releases string "v1" no
build_url The release tar ball on github string "https://github.com/ortolanph/aleajactarest/archive/" no
email E-mail linked to the heroku account string n/a yes
formation_quantity How many instances are required number 1 no
formation_size The size of the formation string "Standard-1x" no
formation_type The formation type string "web" no
heroku_api_key The Heroku API Key string n/a yes

Outputs

Name Description
project_url n/a

License

MIT License

Copyright (c) 2020 Paulo Ortolan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

secondstataion-infra's People

Contributors

ortolanph avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

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.