Code Monkey home page Code Monkey logo

cloud-foundry-app's Introduction

Cloud Foundry Application Sample

With this template you can provision and manage a Cloud Foundry application. The template here is a sample which, beside the terraform configuration file, also includes the source code of a sample application. This source code is pushed to the IBM Cloud during deployment (i.e. if you trigger the Apply, see below).

In order to use this in a scenario where the source code of the application is updated regularly and re-deployed to the cloud, you should fork the repository - or create your own git repo using the terraform configuration files of this template as sample.

Variables used in this template

The following variables are used to customize the template.

Variable Name Description Default Value
ibm_cloud_apikey IBM Cloud user apikey -
ibm_cloud_organization IBM Cloud organization name -
ibm_cloud_space IBM Cloud space name -
application_hostname hostname for the application's route. The resulting url will be hostname.mybluemix.net. Note that this must be unique across IBM Cloud, i.e. specifying trivial names such as test most probably results in an error during deployment. You then have to change the variable and trigger the Apply again. -
application_version version specification of the application. A change of this parameters is an indication for terraform that the application code has changed and needs to be redeployed. 100
application_instances number of cloud foundry application instances to be deployed 1

Next steps

After setting up your environment with this template, you can run Plan to preview how Schematics will deploy resources (in this case, a Cloud Foundry application) to your environment. When you are ready to deploy the app, run Apply.

After a successful deployment, you can access the application using the provided hostname: https:\\<hostname>.mybluemix.net. The exact hostname is also written to the terraform log for reference.

cloud-foundry-app's People

Contributors

hdaur avatar

Watchers

 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.