Closed codeyogi911 closed 3 months ago
Thanks for the feature request. We evaluate it and update the issue accordingly.
@codeyogi911 the bahavior you are experiencing is unfortunately an issue with the mechanics of the SAP BTP. When creating a subaccount the sap.default
IDP is automatically linked to the subaccount. There is no option to deactivate this automatic assignment.
Consequently the resource is existing on SAP BTP, but not managed by Terraform although the subaccount was created via Terraform.
The only way to resolve this situation is a multi-step process:
sap.default
IDP via Terraform import block (see https://developer.hashicorp.com/terraform/language/import) to bring it under the management of Terraform. You can also give the experimental parameter -generate-config-out
a try to let Terraform create the configuration for you. We made some good experience with this parameter although some manual post-processing might be necessary.As there is nothing we can implement from the Terraform provider side to make this flow easier, I am closing this issue.
What area do you want to see improved?
terraform provider
Is your feature request related to a problem? Please describe.
I want to set the
available_for_user_logon
to false for thesap.default
IDP after the creation of subaccount. Right now if I declare the resource like below:It gives me the error:
Describe the solution you would like
If the trust configuration already exists it should just update the params.
Describe alternatives you have considered
There is no other resource that could be used. Earlier I was using BTP CLI but since moving to remote apply from HCP it shows
command not found
error as BTP CLI is not installed on remote machines running in HCP.Additional context
No response