Hi
I’m using the machines api to deploy my application. Everything is working fine except for the application suspension. I’m using the following endpoint: https://api.machines.dev/v1/apps/{{ _['app-name'] }}/machines
This is the body of the request
{
"region": "{{ _.region }}",
"mounts": [
{
"source": "ubuntu_home",
"destination": "/root"
}],
"config":
{
"memory_gb": 2048,
"image": "registry.fly.io/my-image:5.3.1",
"env":
{
"USER_NAME": "{{ _['app-name'] }}",
"USER_PASSWORD": "{{ _['app-secret'] }}"
},
"guest":
{
"memory_mb": 2048,
"cpus": 2,
"cpu_kind": "shared"
},
"services": [
{
"protocol": "tcp",
"internal_port": 8080,
"auto_stop_machines": "suspend",
"auto_start_machines": true,
"min_machines_running": 0,
"max_machines_running": 1,
"force_https": false,
"ports": [
{
"port": 80,
"handlers": ["http"]
},
{
"port": 443,
"handlers": ["tls", "http"]
}]
}],
"checks":
{
"healthcheck":
{
"type": "http",
"protocol": "http",
"method": "GET",
"path": "/",
"interval": "15s",
"timeout": "10s",
"grace_period": "40s",
"port": 8080
}
}
}
}
I’ve tried with / without the health check but that doesn’t make a difference. Any guidance would be appreciated!