-
Notifications
You must be signed in to change notification settings - Fork 13
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
Terraform SAP provider 500 error while provisioning multiple resources #840
Comments
@rohitsinghsap This error has nothing to do with your configuration. You are probably having a wrong configuration of your provider as it is unable to create the client defined in the module. The provider block should look like this in your modules: terraform {
required_providers {
btp = {
source = "sap/btp"
version = "~> 1.4.0"
}
}
} Your main configuration should be the only place that contains the provider configuration. |
@lechnerc77 Hi, The provider block in modules are same as you mentioned. With the configurations I have I am able to provision resources but sometime 500 error is there while running terraform plan or apply command. If there is any issue with the provider configuration, it shouldn't work anytime. |
This error is raised when the authentication with the SAP BTP fails. So maybe there is an temporal issue with the SAP BTP that you ran into or an issue with your IdP. |
@lechnerc77 should I try with custom IdP? right now I am using default IdP. |
No, this can also be an issue with standard IdP. |
Is there an existing issue for this?
What version of the Terraform provider are you using?
1.8.5
What version of the Terraform CLI are you using?
1.8.5
What type of issue are you facing
bug report
Describe the bug
I have written a terraform code for different BTP resources and then created a main.tf file where I am calling modules for provisioning of BTP resources. When I have added 3-4 resources then I was not getting any error but when I have completed with incorporating all eight resources module for provisioning then it gives an error of 500. Sample error
"Error: unableToCreateClient
│
│ with module.role.provider["registry.terraform.io/sap/btp"],
│ on Modules/prod/produs/btp/role/provider.tf line 10, in provider "btp":
│ 10: provider "btp" {
│
│ received response with unexpected status [Status: 500; Correlation ID: 718fcf36-1b2e-f6de-759b-07ed33b543d9]"
Expected Behavior
While running terraform plan and apply this error is coming unexpectedly. but expected behaviour is that terraform plan and apply command will run without any error.
Steps To Reproduce
No response
User's Role Collections
No response
Add screenshots to help explain your problem
Additional context
No response
The text was updated successfully, but these errors were encountered: