Closed miyasuta closed 2 weeks ago
btp --format json get services/plan --name apiaccess --offering-name xsuaa
btp --format json list services/plan
Update: The service where the plan should be fetched via the Terraform provider for SAP BTP is a service plan that is coupled to a runtime (in the case of xsuaa
and apiaccess
to the cloud foundry runtime)
Consequently the information cannot be fetched via the Terraform provider for SAP BTP as this provider can only fetch information about services that are runtime-agnostic (environment "other" when trying to instantiate them in the cockpit). So, the behavior is correct.
@miyasuta in order to fetch these plans you must use the Cloud Foundry provider to get the plan (and the CF environment must be up and running)
@lechnerc77 Thank you for the explanation. I will use Cloud Foundry provider.
Is there an existing issue for this?
What version of the Terraform provider are you using?
1.8.0
What version of the Terraform CLI are you using?
1.8.0
What type of issue are you facing
bug report
Describe the bug
Executing the data "btp_subaccount_service_plan" command failed with "BadRequest" error.
Command
Error
Expected Behavior
Service plan details should be retrieved.
Steps To Reproduce
terraform init
terrafom apply
with the following configurationmain.tf
provider.tf
User's Role Collections
Add screenshots to help explain your problem
Additional context
The entitlement for xsuaa service with plan apiaccess has been added to the subaccount.