store_value
argument ignored when creating a service api key
#4615
Labels
service/IAM
Issues related to IAM
store_value
argument ignored when creating a service api key
#4615
Community Note
Terraform CLI and Terraform IBM Provider Version
1.53.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
As per documentation, a key with an unretrievable
apikey
attribute should be created ifstore_value = false
argument is specified.Actual Behavior
While getting the argument value using
GetOk
method, a boolfalse
value would be compared with the type zero-value, and being it the same it gets "mistaken" for an undefined bool, flagged as non-existent and returned to the caller.As can be seen following the first link above, the obtained value is then never set on
createAPIKeyOptions
for ibm sdk client to use it on create api call. Sincestore_value
defaults totrue
it's not currently possible to specify it asfalse
.Steps to Reproduce
terraform apply
the provided terraform code;apikey
value from obtained details about the service api key - eg. using ibmcloud CLI as such:References
The text was updated successfully, but these errors were encountered: