Skip to content
Navigation Menu

IBM Cloud

  • CatalogCatalog
  • Cost EstimatorCost Estimator
    • HelpHelp
      • Docs
  • Log in
  • Sign up
  • Catalog
  • Cost Estimator
  • Help
    • Docs

  • Navigation settings

Error

Change theme

This feature is in early stage, some parts of the platform might not fully support different themes yet.

Themes
  1. Catalog

2 Zone VPC

Creates two virtual private clouds (VPC) with a Gateway and multiple virtual machines per VPC

  • Date of last update: 01/08/2024
  • Readme file
  • Terraform
  • Community
  • 01/08/2024
  • Networking
  • Readme file
Copy
Select your deployment target

Select a delivery method

Select a delivery method

Select product version

    Version last updated: 12/01/2022

    Summary

    Two-zone Virtual Private Cloud

    With this template, you can use IBM Cloud Schematics to create two virtual private clouds (VPCs) in two separate zones of your IBM Cloud account. Schematics uses Terraform as the infrastructure-as-code engine. With this template, you can create and manage infrastructure as a single unit as follows. For more information about how to use this template, see the IBM Cloud Schematics documentation.

    Included:

    • 2 virtual private cloud instances, in separate zones.
    • 1 VPC virtual servers instances per zone. The virtual servers include an NGINX load balancer.

    Not included:

    • No VPC load balancers are created to expose workloads in the virtual servers on the public network.
    • No global load balancer is provisioned to manage traffic across the 2 VPC instances.

    Costs

    When you apply template, the infrastructure resources that you create incur charges as follows. To clean up the resources, you can delete your Schematics workspace or your instance. Removing the workspace or the instance cannot be undone. Make sure that you back up any data that you must keep before you start the deletion process.

    • VPC: VPC charges are incurred for the infrastructure resources within the VPC, as well as network traffic for internet data transfer. For more information, see Pricing for VPC.
    • VPC virtual servers: You specify how many virtual servers to provision in each VPC. The price for your virtual server instances depends on the flavor of the instances, how many you provision, and how long the instances are run. For more information, see Pricing for Virtual Servers for VPC.

    Dependencies

    Before you can apply the template in IBM Cloud, complete the following steps.

    1. Make sure that you have the following permissions in IBM Cloud Identity and Access Management:
      • Manager service access role for IBM Cloud Schematics
      • Operator platform role for VPC Infrastructure
    2. Download the ibmcloud command line interface (CLI) tool.
    3. Install the ibmcloud terraform and ibmcloud is CLI plug-ins for Schematics and VPC infrastructure. Tip: To update your current plug-ins, run ibmcloud plugin update.
      • ibmcloud plugin install schematics
      • ibmcloud plugin install vpc-infrastructure
    4. Create or use an existing SSH key for VPC virtual servers.

    Configuring your deployment values

    When you select the 2-zone-vpctemplate from the IBM Cloud catalog, you set up your deployment variables from the Create page. When you apply the template, IBM Cloud Schematics provisions the resources according to the values that you specify for these variables.

    Required values

    Fill in the following values, based on the steps that you completed before you began.

    Variable Name Description
    ssh_public_key Enter the public SSH key that you use to access your VPC virtual servers. Use the public key from the ~/.ssh/id_rsa.pub file generated by the latest version of ssh-keygen tool, with the recommended key-size 2048.

    Optional values

    Before you apply your template, you can customize the following default variable values.

    Variable Name Description Default Value
    region The region to create your two VPCs in, such as us-south. The VPCs are created in two separate zones within the same region. To get a list of all regions, run ibmcloud is regions. us-south
    ssh_key_name The name of your public SSH key. VPC_ssh_key
    image Enter the ID of the image that represents the operating system that you want to install on your VPC virtual server. To list available images, run ibmcloud is images. The default image is for an ubuntu-16.04-amd64 OS. 7eb4e35b-4257-56f8-d7da-326d85452591
    profile Enter the profile of compute CPU and memory resources that you want your VPC virtual servers to have. To list available profiles, run ibmcloud is instance-profiles. bc1-2x8

    Outputs

    After you apply the template your VPC resources are successfully provisioned in IBM Cloud, you can review information such as the virtual server IP addresses and VPC identifiers in the Schematics log files, in the Terraform SHOW section.

    Getting support

    This is a community supported product. If you're experiencing issues with this product, go to the IBM Cloud Support Center and navigate to creating a case. Use the All products option to search for this product to continue creating the case or to find more information about getting support. Third party and community supported products might direct you to a support process outside of IBM Cloud.

    Summary

    2 Zone VPC

    • Deployment target: IBM Cloud Schematics
    • Delivery method: Terraform
    Already have an account? Log in