copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2022-06-14 |
terraform, run local, customize, cli |
account |
{{site.data.keyword.attribute-definition-list}}
{: #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}
{: #run-local-prereqs}
Install the IBM Cloud CLI and the Catalog Management CLI plug-in.
{: #local-install}
- Copy into a file named
main.tf
and set the values for "environment_name" and "ibm_region". - Configure .netrc file with authentication token for IBM Cloud:
ibmcloud catalog netrc
. - 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. - Run the command
terraform init
to download all needed terraform modules. - Run the command
terraform plan
to see what resources will be created. - Run the command
terraform apply
to create the resources. This might take some time.