terraform-ibm-modules/terraform-ibm-rag-sample-da

Pipeline properties fail to create

Opened this issue · 2 comments

When the module is deployed as a part of the RAG DA stack and a new CD service instance is requested (create_continuous_delivery_service_instance = true), creation of several ibm_cd_tekton_pipeline_property resources fails as apparently it expects a Continuous Delivery service.

This happens if the ALM deployment (where the toolchains are created) is more than 14 days old and the App Configuration DA is undeployed and deployed again. In that case the CD instance (provisioned in this module) is destroyed therefore making the toolchains inoperable. Even though a new CD instance is being planned / provisioned, since there is no dependency in ibm_cd_tekton_pipeline_property on the CD instance, the pipeline property creation fails.
ci_pipeline_webhook creation fails as well.

The module may have to fetch the existing CD instance if create_continuous_delivery_service_instance = false and use either that or the created CD instance as a dependency for the pipeline properties and webhooks.

Affected modules

solutions/banking/main.tf
Release: 2.0.1

Terraform CLI and Terraform provider versions

  • Terraform version:
  • Provider version:

Terraform output

See redacted project deploy log

Debug output

Expected behavior

Actual behavior

Steps to reproduce (including links and screen captures)

  1. Run terraform apply

Anything else


By submitting this issue, you agree to follow our Code of Conduct

A similar issue occurs when undeploying this DA - the CD instance is deleted first and if the toolchains / pipelines are older than 14 days, the delete operations on triggers and properties fail because the CD instance is required for any changes to those resources.