This directory contains the sample Terraform code to create a Power Virtual Server instance image.
- Create a Power Systems Virtual Server Instance. For more information, see Getting started with IBM Power Systems Virtual Servers.
- Create a [SSH key](TODO: link needed).
Verify that your custom image is publicly available in all supported regions (also known as a stock image). TODO: Need info here...
Before you begin, make sure that you have the following IBM Cloud Identity and Access Management (IAM) permissions:
- Manager service access role for IBM Cloud Schematics
- TODO: Need IAM Permissions for Power here... For more details, see Creating Terraform templates.
To test your template, run the following commands from the Terraform CLI:
terraform init
terraform validate
For more information, see Terraform and the IBM Cloud provider plug-in.
Use the [latest isv-power-vsi-product-deploy-sample release](TODO: Link needed here) as an example of how to set up your release.
Tip: Make sure to note the URL of your .tgz
file.
The onboarding process includes importing your .tgz
file that you created in the previous section to a private catalog, configuring the deployment values, and then validating the Terraform template. For more details, see [Onboarding a Power virtual server image](TODO: Need link here).
To publish a new version of your image, complete the following steps:
- Import the new version as described in the previous Import your custom image to all supported regions section.
- Edit the
variables.tf
file by updating the stock_image_name variable. - Create an updated GitHub release to create a new
.tgz
file, and note the new URL as previously described in the Create GIT release for artifacts and .tgz section. - Onboard the new version in your private catalog as previously described in the Onboard your Terraform template section.