When creating a dedicated M2 host with the script (see bottom of he issue), one gets the following panic:
$ ~/Downloads/mac/01_create-dedicatedhost.sh
690ba34fade920c9814a7768ace80dc0ad0a8c9ce275e46f15931e62cc925e9b
{"level":"debug","msg":"Running 'qenvs aws mac create'","time":"2023-12-06T11:32:27Z"}
{"level":"debug","msg":"context initialized for qenvs9ae01560","time":"2023-12-06T11:32:27Z"}
{"level":"debug","msg":"checking if m2 is offered at us-east-1","time":"2023-12-06T11:32:27Z"}
{"level":"debug","msg":"creating dedicated host for mac machine m2","time":"2023-12-06T11:32:29Z"}
{"level":"debug","msg":"Creating stack stackDedicatedHost-macmini","time":"2023-12-06T11:32:29Z"}
panic: send on closed channel
goroutine 85 [running]:
github.com/adrianriobo/qenvs/pkg/provider/aws/data.LokupRegionOfferingInstanceType.func1(0xc0004284e0)
/workspace/pkg/provider/aws/data/instance-type.go:57 +0xd8
created by github.com/adrianriobo/qenvs/pkg/provider/aws/data.LokupRegionOfferingInstanceType
/workspace/pkg/provider/aws/data/instance-type.go:53 +0x33e
When creating a dedicated M2 host with the script (see bottom of he issue), one gets the following panic:
The script 01_create-dedicatedhost.sh: