You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a cyberark_safe resource with both a retention and retention_versions attribute, the provider throws an error due to the response it receives from the API. This is because a safe can only have a retention in days OR versions. I submitted #2 to help mitigate this with documentation.
Steps to Reproduce
Define a cyberark_safe resource with both retention and retention_versions and attempt to apply it.
Receive an error similar to:
cyberark_safe.AAM_Test_Safe: Creating...
╷
│ Error: Error creating Safe
│
│ with cyberark_safe.AAM_Test_Safe,
│ on main.tf line 17, in resource "cyberark_safe" "AAM_Test_Safe":
│ 17: resource "cyberark_safe" "AAM_Test_Safe" {
│
│ Error onboarding new Safe: (failed to add safe, expected status code 201, got 400)
Expected Results
The provider should throw an error when trying to create a resource that has both attributes defined.
Summary
When defining a
cyberark_safe
resource with both aretention
andretention_versions
attribute, the provider throws an error due to the response it receives from the API. This is because a safe can only have a retention in days OR versions. I submitted #2 to help mitigate this with documentation.Steps to Reproduce
cyberark_safe
resource with bothretention
andretention_versions
and attempt to apply it.Expected Results
The provider should throw an error when trying to create a resource that has both attributes defined.
Actual Results
Example resource:
Debug logs:
Reproducible
Version/Tag number
0.2.1
Environment setup
N/A
Additional Information
N/A
The text was updated successfully, but these errors were encountered: