-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Is there an existing issue for this?
- I have searched the existing issues
What version of the Terraform exporter are you using?
1.4.0
What version of the Terraform CLI/OpenTofu CLI are you using?
1.13.3
What type of issue are you facing
bug report
Describe the bug
When re-creating entitlements from an exported configuration, an error occurs if the entitlement only requires enablement but was exported with a quota value.
This is caused by the default behavior of the exporter, which includes a quota amount for all entitlements — even those that only need to be enabled.
Error Message:
The enable parameter has not been set or the amount parameter was set with a quota value (setting a quota is not supported by multitenant applications and by services that do not permit a numeric quota assignment). [Error: 12003/400]
Expected Behavior
The exporter should differentiate between quota-based and enablement-only entitlements to avoid invalid configurations.
Steps To Reproduce
- Export entitlements from a subaccount using the exporter.
- Include an entitlement that only requires enablement (no quota).
- Use the exported configuration to re-create the entitlement via the Terraform SAP BTP Provider
- Observe the error during re-creation.
User's Role Collections
- Global Account Administrator
- Subaccount Administrator
Add screenshots to help explain your problem
Additional context
I'm currently using a trial account.
If you manually remove the amount attribute from the exported configuration, the entitlement can be successfully re-created.