Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

ICD edb encryption test failed due to mismatching key index in renovate pipelines #323

@shemau

Description

@shemau

Affected modules

  • terraform-ibm-icd-edb

Terraform CLI and Terraform provider versions

  • Terraform version:
  • Provider version:

Terraform output

TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │ Error: Invalid index
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │ 
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │   on main.tf line 103, in module "enterprise_db":
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67:103:   kms_key_crn                  = module.key_protect_all_inclusive.keys["icd-edb.${var.prefix}-edb"].crn
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │     ├────────────────
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │     │ module.key_protect_all_inclusive.keys is object with 2 attributes
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │     │ var.prefix is "edb-upg-jrkvwc"
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │ 
TestRunUpgradeCompleteExample 2025-02-08T04:43:12Z logger.go:67: │ The given key does not identify an element in this collection value.

This error has been experienced in other repos. It is an error in a KMS key index on the main branch. The fix will likely to have to be run without an upgrade test, because main can not be deployed to perform the upgrade.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions