Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Creating Subaccount - API Error 404 #99

Open
mailnike opened this issue Jan 21, 2025 · 1 comment
Open

Error Creating Subaccount - API Error 404 #99

mailnike opened this issue Jan 21, 2025 · 1 comment

Comments

@mailnike
Copy link

I am trying to run the ./run.sh script in the btp-genai-starter-kit, but I am encountering an error during subaccount creation. The error message is:

Error: API Error Creating Resource Subaccount

 with btp_subaccount.gen_ai,
 on main.tf line 11, in resource "btp_subaccount" "gen_ai":
 11: resource "btp_subaccount" "gen_ai" {

received response with unexpected status [Status: 404; Correlation ID: 4afd035a-76ee-63c1-d7f4-ef669dde7c00]

I have followed the instructions in the README, including:

  • Installing the necessary prerequisites (VS Code, Dev Container extension, Docker, Git).
  • Cloning the repository and opening it in VS Code.
  • Opening the Dev Container.
  • Renaming and configuring the my_btp_ai_setup.tfvars and my_btp_credentials.tfvars files.

I have double-checked my credentials and network connectivity, and I am not aware of any issues with the SAP BTP service.

Environment:

  • Operating System: macOS
  • VS Code Version: 1.96.3
  • Docker Version: 4.37.2
  • Terraform Version: 1.10.4

Steps to Reproduce:

  1. Clone the repository: git clone https://github.com/SAP-samples/btp-genai-starter-kit.git
  2. Open the repository in VS Code.
  3. Open the Dev Container.
  4. Rename and configure the my_btp_ai_setup.tfvars and my_btp_credentials.tfvars files.
  5. Run the ./run.sh script.

Expected Behavior:

The script should successfully create the subaccount and proceed with the setup.

Actual Behavior:

The script fails with the error message shown above.

Questions:

  • Could this be related to my user permissions in the SAP BTP global account?
  • Are there any known issues with subaccount creation on SAP BTP that might be causing this?
  • Are there any other troubleshooting steps I can take to resolve this issue?

Please help me identify the cause of this error and provide a solution so I can proceed with the genAI starter kit.

@rui1610
Copy link
Contributor

rui1610 commented Jan 27, 2025

A couple of questions:

  • do you have admin rights for the global account that you are using, so that you are authorized to create subaccounts?
  • in case you've already tried this a couple of times, did you delete the .terraform folder as well as the .terraform.lock.* files and the terraform.state (in the 'scripts/step01_setup_infra' folder) file before running the .run./sh script?

I've just tried out myself with the current main branch and it worked without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants