Troubleshooting Terraform related issues
Review the following known issues with Terraform.
-
When you deploy a Terraform template that contains plug-in provider version that is not packaged with IBM Cloud Pak for AIOps, using Terraform engine 0.13.x or higher, you see the following error. The error is due to the changes made by Terraform on how Terraform manages the provider versions in Terraform 0.13.x or higher. For more information, see Terraform Provider Requirements.
Failed to query available provider packages Could not retrieve the list of available versions for provider <provider_name>: no available releases match the given constraints <provider_version>
To resolve this issue, you have to add the new provider version to the local provider registry. For more information, see Custom Terraform providers.
For the list of shipped provider versions, see Shipped Terraform providers.
-
After you install, you may see the following error when you deploy services.
SubmitJobProviderResponseError: Failed to submit task for stack <stack_id> on the remote provider (API: /stack/create). Caused by: The terraform binary for version <version_number> does not exist.
The reason for this error is that the service definition in default provided services is using the older version of Terraform engine. The following versions of Terraform engine are packaged: 0.12.31, 0.13.7, and 0.14.11.
To resolve this issue, edit the failed service in the service composer, open the source code tab and change the value for
provider_engine_version
attribute. Ifprovider_engine_version
is 0.12.21, then use 0.12.31.