SAP / terraform-provider-btp

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

[FEATURE] Manage HANA Cloud instance mappings #694

Open tcasteli opened 8 months ago

tcasteli commented 8 months ago

What area do you want to see improved?

terraform provider

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

The Terraform Provider in its current state supports the creation of HANA Cloud instances. It is currently not possible to manage instance mappings via Terraform.

Describe the solution you would like

The management of instance mappings should be possible via Terraform. Here some pseudo code how this could look like

resource "btp_subaccount_hana_cloud_instance_mapping" "space_mapping" {
  subaccount_id = "your_subscr_id"
  hana_instance_id = "your_hana_instance_id"
  platform = "cloudfoundry|kubernetes"
  primary_id = "your_org_id|your_cluster_id"
  secondary_id = "your_space_id|your_namespace_id"
  is_default = "true|false"
}

Describe alternatives you have considered

Calling the Business Accelerator Hub API to manage instance mappings. This needs a restful terraform provider and client_id/client_secret in the provider configuration.

Additional context

The provider would supply the same functionality as the Business Accelerator Hub API which can be found here: https://api.sap.com/api/InventoryServiceAPI/path/post_inventory_v2_serviceInstances__serviceInstanceID__instanceMappings

github-actions[bot] commented 8 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

zhjuncai commented 8 months ago

I'd love to have this feature too, then we can fully automate the runtime and hana cloud resources provision