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
google_compute_node_types - support new Node Types in node template creation #6617
Comments
a must have - for me too |
Hi @mikida12 and @vladimirfaile! Thanks for the feature request. I just want to clarify what you're looking for, are you looking for more filter options on the |
@megan07 I think so but I don't see an example that could verify this 100%. When I create a node template from GCP console, there are 3 options (c2-node-60-240, m1-node-96-1433, n1-node-96-1433) but I don't see anywhere I can specify this in TF, so it can only create c2-node-60-240 template by default. I can't create a node template for the other 2 machine types - and this is the functionality I am looking for. Thanks |
@mikida12 I think there are two examples on how you can do this. One is already possible, the other is what I'm referring to above (we'd have to implement) Current option (you can hard-code
Second option (we'd need to implement)
I also want to mention, with your current example, you can index any of Let me know if this helps at all or if you still have questions. |
Thanks for the detailed answer @megan07 .
|
Hi @mikida12! I took a look - it looks like node-type I wouldn't recommend the second way, just wanted to mention it's an option. To be honest, I'm not sure if the order of the list returned by the API is consistent, but if you wanted to test it you could use the link above and see if the order is the same there rather than checking the order of what's listed in the console. |
Hi @mikida12! Just wanted to follow up and see if you were able to resolve this issue and if we could close it. Thanks! |
@megan07 sorry for the (very) late reply. I changed |
@mikida12 - no problem! i'm glad it's working! thanks for letting me know! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Description
Today, when creating a new node template through GCP UI dashboard, there are 3 types you can choose from, 2 of which were added just recently: c2-node-60-240, m1-node-96-1433, n1-node-96-1433.
In google_compute_node_types there is no option to specify which type will be created, so by default only c2-node-60-240 type can be created. As I can see here
https://www.terraform.io/docs/providers/google/d/google_compute_node_types.html
, only available arguments are: zone, project.
according to google API https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes looks like we should send the key "cpuPlatform"
New or Affected Resource(s)
google_compute_node_types
google_compute_node_template
The text was updated successfully, but these errors were encountered: