kelvintaywl / terraform-provider-circleci

(Unofficial) Terraform Provider for CircleCI
https://registry.terraform.io/providers/kelvintaywl/circleci/latest
Mozilla Public License 2.0
12 stars 3 forks source link

add docs for how to find a runner resource class id #56

Closed felixlut closed 8 months ago

felixlut commented 8 months ago

I spent more time than I'm willing to admit to find how to get the id from the CCI API. Turns out the endpoints listed in their docs (which is for v3) doesn't return the id, and I was unable to find the specific endpoint in the docs for v2 either.

I went on a wild goose chase from here to here to figure it out...

I'd like to save as many people as I can from being exposed to this

felixlut commented 8 months ago

Ofc I could have used the data source 🤦‍♂️

@kelvintaywl btw, just to satisfy my own curiosity, where did you find this endpoint? Looking at the Notes of the README, the endpoint isn't official

kelvintaywl commented 8 months ago

@felixlut ah, sure, I found the API endpoint via inspecting how the circleci CLI binary looks up the Runner resource-classes (i.e., when you run circleci runner resource-class list [namespace].)