-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error setting autoscaling_config on bigtable_instance
#11988
Comments
I took a look at this and don't believe it can be replicated when using the provider directly, but may be an issue for indirect users of the provider. We have a few tests that exercise various behaviours on the field, all of which succeed:
I'm not sure why this isn't a
I think the These are a fiddly set of fields and can cause issues for indirect users. If you're able to, I'd recommend working on a patched version of the provider that removes this validation. It's an improvement for direct users but has the negative impact you've seen when Terraform's rules about emptiness/nilness aren't followed exactly (and those rules aren't formally recorded anywhere I'm aware of, particularly due to the number of shims between Terraform Core and the SDK). |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Expected Behavior
User should be able to set
autoscalingConfig
without an issue.Actual Behavior
When setting both
autoscalingConfig
andnumNodes
, this underlying API error is returned:Error creating instance. rpc error: code = Canceled desc = Operation successfully rolled back : Both manual scaling (serve_nodes) and autoscaling (cluster_autoscaling_config) enabled. Exactly one must be set for CreateInstance/CreateCluster
(
numNodes
looks like it maps toserve_nodes
)However, if you remove
numNodes
, we run into the validation function that requiresnumNodes
to have a value of at least one:Error: cluster.numNodes cannot be less than 1
Have other TF customers run into this?
References
The text was updated successfully, but these errors were encountered: