terraform-ibm-modules / stack-retrieval-augmented-generation

A deployable architecture that automates the deployment of a sample gen AI Pattern on IBM Cloud, including all underlying IBM Cloud and WatsonX infrastructure.
Apache License 2.0
1 stars 11 forks source link

Security service - KMS fails to redeploy and undeploy #73

Closed maheshwarishikha closed 4 months ago

maheshwarishikha commented 4 months ago
Error: Could not update the policies: [ERROR] Error while setting instance policies: kp.Error: correlation_id='3209d006-cb01-4755-b017-ef80e9b14d1f', msg='Bad Request: Instance policy could not be created: Please see `reasons` for more details (INVALID_FIELD_ERR)', reasons='[INVALID_FIELD_ERR: The field `attributes` must be: provided only if policy is being enabled - FOR_MORE_INFO_REFER: https://cloud.ibm.com/apidocs/key-protect]'
 2024/05/08 16:54:11 Terraform apply | 
 2024/05/08 16:54:11 Terraform apply |   with module.kms.module.key_protect[0].ibm_kms_instance_policies.key_protect_instance_policies,
 2024/05/08 16:54:11 Terraform apply |   on .terraform/modules/kms.key_protect/main.tf line 26, in resource "ibm_kms_instance_policies" "key_protect_instance_policies":
 2024/05/08 16:54:11 Terraform apply |   26: resource "ibm_kms_instance_policies" "key_protect_instance_policies" {
vburckhardt commented 4 months ago

I think it's related to https://github.com/terraform-ibm-modules/terraform-ibm-kms-all-inclusive/issues/448

ocofaigh commented 4 months ago

provider issue raised: https://github.com/IBM-Cloud/terraform-provider-ibm/issues/5342