fly-apps / terraform-provider-fly

Terraform provider for the Fly.io API
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Clarify cputype option #104

Open a-alhusaini opened 2 years ago

a-alhusaini commented 2 years ago

Hey all. Thought I'd point out that we needed to clarify what cputype actually means. I spent an hour trying "shared-1x" "shared-cpu-1x" and what not till I figured out that the options were "standard" and "performance"

Please clarify this in the docs. Thanks!

stepbrobd commented 2 years ago

I assume it would be either “shared” or “dedicated“.

I tried “shared” in my app and it worked just fine, but I haven’t tried “dedicated” yet.

a-alhusaini commented 2 years ago

Yeah, you'd think its "dedicated" but its actually "perofrmance.

On Sun, Oct 30, 2022 at 2:21 AM StepBroBD @.***> wrote:

I assume it would be either “shared” or “dedicated“.

I tried “shared” in my app and it worked just fine, but I haven’t tried “dedicated” yet.

— Reply to this email directly, view it on GitHub https://github.com/fly-apps/terraform-provider-fly/issues/104#issuecomment-1296017806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKVLSZZPIL6KD636Q3RRGNDWFWWOHANCNFSM6AAAAAARQADAYI . You are receiving this because you authored the thread.Message ID: @.***>

stepbrobd commented 2 years ago

Yeah, Fly.io is an amazing platform, but they really need to update their docs more often than they currently are.

alekc commented 1 year ago

oh god, thx. You just saved me from hours of debugging :/

chronark commented 1 year ago

Yeah if you choose an invalid type, the error is not really helpful


│ Error: Failed to update machine
│ 
│   with fly_machine.pinger["maa"],
│   on fly.tf line 42, in resource "fly_machine" "pinger":
│   42: resource "fly_machine" "pinger" {
│ 
│ Update request failed: 400 Bad Request, &{ID: Name: State: Region: InstanceID: PrivateIP: Config:{Env:map[] Init:{Exec:[] Entrypoint:[] Cmd:[]} Image:
│ Metadata:<nil> Restart:{Policy:} Services:[] Mounts:[] Guest:{CPUKind: Cpus:0 MemoryMb:0}} ImageRef:{Registry: Repository: Tag: Digest: Labels:{}}
│ CreatedAt:0001-01-01 00:00:00 +0000 UTC}
╵
╷