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

Project: passing an api key at the stack level in UI is not functional #62

Closed vburckhardt closed 4 months ago

vburckhardt commented 4 months ago
 2024/05/07 10:09:34 Terraform plan | Error: ibmcloud_api_key or bluemix_api_key or iam_token and iam_refresh_token must be provided. Please see the documentation on how to configure it
 2024/05/07 10:09:34 Terraform plan | 
 2024/05/07 10:09:34 Terraform plan |   with module.account_infrastructure_base.module.account_settings.data.ibm_iam_account_settings.iam_account_settings,
 2024/05/07 10:09:34 Terraform plan |   on .terraform/modules/account_infrastructure_base.account_settings/main.tf line 8, in data "ibm_iam_account_settings" "iam_account_settings":
 2024/05/07 10:09:34 Terraform plan |    8: data "ibm_iam_account_settings" "iam_account_settings" {
 2024/05/07 10:09:34 Terraform plan | 
 2024/05/07 10:09:35 Terraform PLAN error: Terraform PLAN errorexit status 1

Affected modules

*

Terraform CLI and Terraform provider versions

Terraform output

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

ocofaigh commented 4 months ago

From Vincent:

After a few trial and errors, it seems that removing the explicit wiring on the ibmcloud_apikey input in the stack definition seems to fix the issue. https://github.com/terraform-ibm-modules/stack-retrieval-augmented-generation/pull/67/commits/d58d4f71c585b088d75b9a047ea31a244a19bb9d