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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
Observed in 1.64.2 + provider registry.terraform.io/ibm-cloud/ibm v1.64.2
Affected Resource(s)
ibm_scc_rule
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
The rule is created after the apply but the rule is not valid. When we open the rule detail on IBM Cloud console we see that required_config.value was set to an empty string by the provider.
Because of this, we are getting an error when we edit the rule in IBM Cloud console SCC on the definition tab.
Error
One or more of the defined parameters is not supported. Verify that all of the parameters in your definition are available for the target that you selected.
Panic Output
N/A
Expected Behavior
The provider should not set the property required_config.value if it is not set by the user.
Actual Behavior
The provider set the property required_config.value to an empty string when it is not defined in the terraform config file .tf
Steps to Reproduce
Create a terraform project and use IBM Cloud terraform provider version 1.64.2
Create a terraform.tfvars file for the SCC instance_id to use
Define an ibm_scc_rule terraform resource without setting the property required_config.value
terraform apply
Go to IBM Cloud SCC console and open the rule created in edit mode, click Next to arrive in the Definition tab and see the error (One or more of the defined parameters is not supported. Verify that all of the parameters in your definition are available for the target that you selected.)
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Community Note
Terraform CLI and Terraform IBM Provider Version
Observed in 1.64.2
+ provider registry.terraform.io/ibm-cloud/ibm v1.64.2
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
The property
required_config.value
was not set, but in the logs we see that it is set by the provider to an empty string"value":""
The rule is created after the apply but the rule is not valid. When we open the rule detail on IBM Cloud console we see that
required_config.value
was set to an empty string by the provider.Because of this, we are getting an error when we edit the rule in IBM Cloud console SCC on the definition tab.
Panic Output
N/A
Expected Behavior
The provider should not set the property
required_config.value
if it is not set by the user.Actual Behavior
The provider set the property
required_config.value
to an empty string when it is not defined in the terraform config file .tfSteps to Reproduce
required_config.value
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: