Skip to content

Latest commit

 

History

History
49 lines (23 loc) · 1.29 KB

catalog-run-local.md

File metadata and controls

49 lines (23 loc) · 1.29 KB
copyright lastupdated keywords subcollection
years
2022
2022-06-14
terraform, run local, customize, cli
account

{{site.data.keyword.attribute-definition-list}}

Running products locally

{: #catalog-run-local}

Instead of deploying the product using the automated process from the catalog tile, you can manually deploy the solution locally. This user should be very familiar with Terraform. {: shortdesc}

Before you begin

{: #run-local-prereqs}

Install the IBM Cloud CLI and the Catalog Management CLI plug-in.

Installing from the CLI

{: #local-install}

  1. Copy into a file named main.tf and set the values for "environment_name" and "ibm_region".
  2. Configure .netrc file with authentication token for IBM Cloud: ibmcloud catalog netrc.
  3. Export the value of your IBM Cloud API key for the IBM Terraform provider: export IC_API_KEY=<your apiKey value>. If you have not yet created an API key, see "Creating an API key" at https://cloud.ibm.com/docs/account?topic=account-userapikey&interface=ui#create_user_key.
  4. Run the command terraform init to download all needed terraform modules.
  5. Run the command terraform plan to see what resources will be created.
  6. Run the command terraform apply to create the resources. This might take some time.