Skip to content

Setup

Pre-requisities

Setup CLI

In this tutorial, we use the IBM Cloud Shell, a cloud managed instance of a client terminal with pre-installed tools like ibmcloud CLI and the OpenShift CLI.

Log into your IBM Cloud account and open the IBM Cloud Shell.

The VPC infrastructure service plug-in to the IBM Cloud CLI is already installed in the IBM Cloud Shell.

Login to IBM Cloud

If you are using the IBM Cloud Shell in your IBM Cloud account, you will already be logged in to your account in the CLI as well.

Check your account settings,

ibmcloud target

List available regions,

$ ibmcloud regions

Name            Display name
au-syd          Sydney
in-che          Chennai
jp-osa          Osaka
jp-tok          Tokyo
kr-seo          Seoul
eu-de           Frankfurt
eu-gb           London
ca-tor          Toronto
us-south        Dallas
us-south-test   Dallas Test
us-east         Washington DC
br-sao          Sao Paulo

Target a region as the default location,

MY_REGION=us-south
ibmcloud target -r $MY_REGION

Create a new resource group or use an existing resource group,

export MY_RG=<username>-vpc-rg
ibmcloud resource group-create $MY_RG
ibmcloud target -g $MY_RG

Next

Next, create a VPC.