-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Affected modules
- devsecops_ci_toolchain
- devsecops_cd_toolchain
- devsecops_cc_toolchain
Terraform CLI and Terraform provider versions
- Terraform version:
- Provider version:
Terraform output
Error occurred while configuring Toolchain service: "service URL for region 'eu-fr2' not found"
Debug output
2025/08/26 07:20:25 Terraform plan | summary: 'Error occurred while configuring Toolchain service: "service URL for region
2025/08/26 07:20:25 Terraform plan | ''eu-fr2'' not found"'
2025/08/26 07:20:25 Terraform plan | severity: error
2025/08/26 07:20:25 Terraform plan | resource: ibm_cd_toolchain
2025/08/26 07:20:25 Terraform plan | operation: read
2025/08/26 07:20:25 Terraform plan | component:
2025/08/26 07:20:25 Terraform plan | name: github.com/IBM-Cloud/terraform-provider-ibm
2025/08/26 07:20:25 Terraform plan | version: 1.79.1
2025/08/26 07:20:25 Terraform plan | with module.terraform_devsecops_alm.module.devsecops_ci_toolchain[0].ibm_cd_toolchain.toolchain_instance,
2025/08/26 07:20:25 Terraform plan | on .terraform/modules/terraform_devsecops_alm.devsecops_ci_toolchain/main.tf line 305, in resource "ibm_cd_toolchain" "toolchain_instance":
2025/08/26 07:20:25 Terraform plan | 305: resource "ibm_cd_toolchain" "toolchain_instance" {
Expected behavior
Toolchains should be created successfully in the eu-fr2 region
Actual behavior
The module works as expected in the eu-de region for example. However, when switching to eu-fr2, terraform apply fails in IBM Schematics with a region not found error.
Steps to reproduce (including links and screen captures)
- Use the module terraform-ibm-devsecops-alm
- set all toolchain regions (toolchain_region, ci_toolchain_region, cd_toolchain_region, cc_toolchain_region) to eu-fr2.
- Run terraform apply in IBM Schematics.
Anything else
Until recently, we were testing with version v2.8.1 of the terraform-ibm-devsecops-alm module. We also tried upgrading to the latest version (v2.8.7), but it did not resolve the issue.
Initially, we were unaware that the environment variable IBMCLOUD_TOOLCHAIN_ENDPOINT needed to be explicitly set for the eu-fr2 region. After opening a support case with IBM, we learned about this requirement and tried the following:
- Using endpoints.json and provider configuration
Following this documentation: Custom Service Endpoints, we updated our provider.tf:
And created endpoints.json at the root of the repo:
We tested different combinations of visibility (public, private) and endpoint keys, but all resulted in the same error:
Error occurred while configuring Toolchain service: "service URL for region 'eu-fr2' not found"
or
Error occurred while configuring Toolchain service: "service URL for region 'BNPP_EU'
2. Setting the environment variable in Schematics
We also tried the second method mentioned in IBM's documentation: setting the environment variable directly in the Schematics workspace settings:
IBMCLOUD_TOOLCHAIN_ENDPOINT=https://api.eu-fr2.devops.cloud.ibm.com/toolchain/v2
This allowed terraform plan to succeed, but terraform apply still failed with the same region error.
By submitting this issue, you agree to follow our Code of Conduct