What version of the Terraform provider are you using?
1.2.0
What version of the Terraform CLI are you using?
1.7.3
What type of issue are you facing
bug report
Describe the bug
The resource for services instances stores the state of the resource even if the creation or update of the resource fails. So even after a failed operation the terraform plan might indicate that everything is correct. This especially happens when the parameters are changed as they cannot be fetched from the platform.
Expected Behavior
If a create or update operation fails, the state does not get changed
Steps To Reproduce
Execute the creation of a HANA Cloud instance with these parameters:
Then change the memory to the value 7 and execute a terraform apply
After that failed execute a terraform plan which will state that there are no changes to be applied which cannot be the case as the change failed
User's Role Collections
Global Account Admin
Subaccount Admin
Add screenshots to help explain your problem
n/a
Additional context
This was probably introduced when adding the sharing functionality for service instances. There are some return statements missing whenever an operation failed.
Is there an existing issue for this?
What version of the Terraform provider are you using?
1.2.0
What version of the Terraform CLI are you using?
1.7.3
What type of issue are you facing
bug report
Describe the bug
The resource for services instances stores the state of the resource even if the creation or update of the resource fails. So even after a failed operation the
terraform plan
might indicate that everything is correct. This especially happens when the parameters are changed as they cannot be fetched from the platform.Expected Behavior
If a create or update operation fails, the state does not get changed
Steps To Reproduce
Execute the creation of a HANA Cloud instance with these parameters:
Then change the memory to the value
7
and execute aterraform apply
After that failed execute a
terraform plan
which will state that there are no changes to be applied which cannot be the case as the change failedUser's Role Collections
Add screenshots to help explain your problem
n/a
Additional context
This was probably introduced when adding the sharing functionality for service instances. There are some
return
statements missing whenever an operation failed.