Software deployment in IBM Cloud Schematics
Try out one of the IBM® provided software templates to quickly spin up a classic Virtual Server Instance (VSI), and automatically configure the instance to connect to an IBM Cloud® Databases for PostgreSQL instance.
With IBM Cloud Schematics, you can choose from a wide variety of software and infrastructure templates that you can use to set up IBM Cloud services, and to
install IBM and Third party software. The templates are applied by using the built-in Terraform
, Ansible
, Helm
, CloudPak
, and Operator
capabilities in Schematics.
As part of this getting started tutorial, you create a Schematics workspace that points to the VSI database template. Then, you run this template and watch Schematics provision your VSI and your IBM Cloud Databases for PostgreSQL instance. IBM Cloud Databases for PostgreSQL is a fully managed database offering in IBM Cloud that supports storing of non-relational and relational data types. For more information about this offering, see What is PostgreSQL?.
This getting started tutorial incurs costs. You must have an IBM Cloud Pay-As-You-Go or Subscription account to proceed. Make sure that you review pricing information for classic VSIs and PostgreSQL.
Before you begin
Before you can use this template, you must complete the following tasks.
- Make sure that you have the permissions to create classic virtual servers.
- Create a classic API key and retrieve your classic infrastructure username. This username and API key are used to verify that you have sufficient permissions to create classic infrastructure.
- Make sure that you have the permissions to create an IBM Cloud Databases for PostgreSQL instance.
Setting up and configuring a classic VSI to run PostgreSQL with Schematics
Use one of the IBM provided software templates to set up and configure a classic VSI so that you can store data in an instance of IBM Cloud Databases for PostgreSQL.
-
Login to your IBM Cloud account.
-
Open the VSI database software template from the IBM Cloud catalog.
Observe IBM Cloud is specified in Select your deployment target and
Terraform Version 1.5.0
orTerraform Version 2.0.0
is displayed in Select a delivery method. -
In the Configure your workspace section, enter Name for your Schematics workspace, select your Resource group, and the Location where you want to create the workspace.
-
Check Override default Terraform version to configure the template to support your Terraform version.
-
In the Set the deployment values section, enter the following information.
-
Click Yes toggle button to enter value for admin-password as
user123
, and db-user-password asuser123
that you want to use to log in to your PostgreSQL instance.The
admin-password
anddb-user-password
must be between 10 and 32 characters long and do not support any special characters. -
Enter the iaas_classic_username as
<your classic_username>
that you retrieved earlier. For more information about how to retrieve this information, see Creating a classic infrastructure API key. -
Select the resource group where you want to provision your virtual server and
PostgresSQL
instance.
-
-
Accept the license agreement, and click Install. You are redirected to the Schematics workspace Activity page where you can monitor the progress of your VSI and PostgreSQL setup. Note that it takes a few minutes for the setup to complete.
-
Verify your virtual server and PostgreSQL setup.
- From the workspace Resources page, find the virtual server and PostgreSQL instance that were created for you.
- Click the link to see the details of your instances.
-
Optional: Remove your Schematics workspace and all related IBM Cloud resources.
- Select the Actions drop down list, click Delete.
- Select the Delete workspace and Delete all associated resources option.
- Enter the name of your workspace, and click Delete.
You used the capabilities of Schematics to provision IBM Cloud infrastructure and database services, and automatically configured your services to allow network communication.
What's next?
- Explore the capabilities of IBM Cloud Databases for PostgreSQL.
- Browse other software and infrastructure templates that you can apply with Schematics.
- Learn more about the built-in capabilities in Schematics.
- Import your Schematics templates and create your private IBM Cloud catalog.
- Set up the Schematics CLI or API to start automating the provisioning and management of IBM Cloud resources.