IBM Cloud Virtual Private Cloud

IBM recently released its next generation of IBM Cloud infrastructure—IBM Virtual Private Cloud (VPC). Now creating your own virtual machines, also called Virtual Server Instances (VSIs), is easier than ever. Not only does it introduce blazing fast compute and network resources, but it also provides up to 4 Nvidia Tesla V100 GPUs with up to 1 TB of memory per VSI—it’s like having a piece of the world’s No. 1 and No. 2 supercomputers at your fingertips!

Deploying your first app with IBM Cloud Schematics

Want to see just how fast this cloud is for yourself? No problem—we’ve made it very simple for you to get started using IBM Cloud Schematics to deploy your first sample LAMP (Linux, Apache, MySQL and PHP) stack. Schematics provides a nice graphical interface to the popular Infrastructure-as-Code technology, Terraform. With a few simple clicks, you can import a Terraform template from GitHub and deploy an application!

Provision time

So, let’s get started!  In this example, we will create a LAMP stack web application using IBM Cloud Schematics.

First off, you’ll need to login to IBM Cloud by visiting https://cloud.ibm.com and entering your credentials or sign up for an account if it’s your first time—and it only takes a few minutes if you’re a new user!

Next you’ll need to get an IBM Cloud API key so that the IBM Cloud Schematics automation can call IBM Cloud APIs behind-the-scenes and associate the cloud resources with your account.  To create an IBM Cloud API key or follow these steps:

  1. Go to Manage > Access (IAM) > IBM Cloud API keys.
  2. Click Create an IBM Cloud API key.
  3. Enter a name and description for your API key.
  4. Click Create.
  5. Then, click Show to display the API key. Or, click Copy to copy and save it for later, or click Download.

Once you have your API key, head over to IBM Cloud Schematics by visiting https://cloud.ibm.com/schematics or selecting IBM Cloud Schematics in the software page on lower left-hand corner as shown below:

IBM Cloud Schematics - Create Workspace

Then click Create a workspace and type in the following information—notice we’ve already supplied the template for you from GitHub, but you could always fork or clone the repository to deploy your own version of the LAMP stack:

Create a workspace

Next, click Retrieve input variables. You will need to supply your IBM Cloud API key in the ibmcloud_api_key override value column below. Also, you can change the region of your VPC by modifying vpc_region. The boot_image_id is a Ubuntu 18.04 image UUID. If you want to adjust the storage size, change storage_capacity. If you need to change where the storage should be located, change storage_zone in the input variables. The variables come with a more detailed description.

If the defaults suffice, just click Create.

Create

Click Generate plan and then Apply plan.

Apply plan

You can now sit back, relax, and wait for the application to be launched—within a few minutes, it will be all set!  The output will display the public IP address of the web server, which you can paste into your web browser.  It’s that simple—you deployed your first app! The output will also display an SSH private key which can be used to login to the command line console of the VSI.  Now you can use this example as a baseline for your own and update it to deploy your own customized app!

All set!

Join The Discussion

Your email address will not be published. Required fields are marked *