SAP / terraform-provider-btp

Terraform provider for SAP BTP
https://registry.terraform.io/providers/SAP/btp/latest
Apache License 2.0
83 stars 17 forks source link

[BUG]Error when creating clients: Error creating ccv2 client: Get "/v2/info": unsupported protocol scheme "" #637

Closed dineshkumarbcs closed 9 months ago

dineshkumarbcs commented 9 months ago

Is there an existing issue for this?

What version of the Terraform provider are you using?

1.0.0-rc1

What version of the Terraform CLI are you using?

1.6.6

What type of issue are you facing

bug report

Describe the bug

Trying to create CF env and org space and assigning roles

Expected Behavior

C:\Users\dines\OneDrive\Documents\Personal\BTP_AUTO\CF_Enablement>terraform plan data.btp_subaccount_environments.all: Reading... data.btp_subaccount_environments.all: Read complete after 1s [id=156fc11c-5bf6-4179-b10e-f942e0f2ec5c]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:

Terraform planned the following actions, but then encountered a problem:

btp_subaccount_environment_instance.cf will be created

Plan: 1 to add, 0 to change, 0 to destroy. ╷ │ Error: Invalid provider configuration │ │ Provider "registry.terraform.io/cloudfoundry-community/cloudfoundry" requires explicit configuration. Add a provider │ block to the root module and configure the provider's required arguments as described in the provider documentation. │ ╵ ╷ │ Error: Error when creating clients: Error creating ccv2 client: Get "/v2/info": unsupported protocol scheme "" │ │ with provider["registry.terraform.io/cloudfoundry-community/cloudfoundry"], │ on line 0: │ (source code not available) │

Steps To Reproduce

End of Plan we are getting below error. ╷ │ Error: Invalid provider configuration │ │ Provider "registry.terraform.io/cloudfoundry-community/cloudfoundry" requires explicit configuration. Add a provider │ block to the root module and configure the provider's required arguments as described in the provider documentation. │ ╵ ╷ │ Error: Error when creating clients: Error creating ccv2 client: Get "/v2/info": unsupported protocol scheme "" │ │ with provider["registry.terraform.io/cloudfoundry-community/cloudfoundry"], │ on line 0: │ (source code not available)

User's Role Collections

No response

Add screenshots to help explain your problem

image

Additional context

No response

lechnerc77 commented 9 months ago

@dineshkumarbcs the output indicated that you have a wrong configuration for the Cloud Foundry Terraform provider. Accordingt othe error message there is no configuration at all. Please check that the configuration of the Cloud Foundry provider is correct and in line with the documentation given here: https://registry.terraform.io/providers/cloudfoundry-community/cloudfoundry/latest/docs

Be aware that there are limitation with respect to Cloud Foundry extension landscapes as discused here: https://github.com/SAP/terraform-provider-btp/issues/601

dineshkumarbcs commented 9 months ago

Thanks for the guidance.