SAP / terraform-provider-btp

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

[FEATURE] Support for Service Broker Registration #855

Closed v0lkc closed 3 months ago

v0lkc commented 4 months ago

What area do you want to see improved?

terraform provider

Is your feature request related to a problem? Please describe.

The SAP BTP Terraform Provider currently lacks the capability to register service brokers that comply with the Open Service Broker API specification within a BTP subaccount. The introduction of a new resource, namely btp_subaccount_service_broker, would fill this gap for integration testing of service brokers.

Describe the solution you would like

Introduce a new resource, btp_subaccount_service_broker, to the Terraform Provider for SAP BTP. This resource will manage the lifecycle of service brokers within a subaccount. It will support creating, updating, and deleting service broker registrations.

Details for the new resource include:

Example Configuration

resource "btp_subaccount_service_broker" "broker" {
   subaccount_id = btp_subaccount.consumer.id
   name          = "my-broker"
   description   = "Service broker for provisioning example services."
   url           = "https://my.broker.com"

   username = "platform_user"
   password = "platform_password"

   labels = {
      environment = ["test"]
      version     = ["v1.0"]
   }
}

Describe alternatives you have considered

Additional context

Task Command Reference
Get a specific service broker in the current subaccount btp get services/broker
Register a new service broker in the current subaccount btp register services/broker
Update an existing service broker in the current subaccount btp update services/broker
Unregister an existing service broker in the current subaccount btp unregister services/broker
github-actions[bot] commented 4 months ago

Thanks for the feature request. We evaluate it and update the issue accordingly.

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

lechnerc77 commented 4 months ago

Further information:

Datasource for service broker is available. The new resource would reflect the BTP CLI commands that represent the modification: