hjemmel
Engineering Elixir Applications - Trigger Autoscale
Hi Folks,
Not sure if anyone had same problem but when deploying the ghcr.io/beamops/kanban:infrastructure-page image in the section Trigger Your Application to Autoscale Using a Prepared Stats Page the image the docker image is failing always with the following message:
10:43:34.149 line=1373 pid=<0.2390.0> registered_name=Kanban.InfrastructureMonitor file=gen_server.erl domain=otp mfa=:gen_server.error_info/8 [error] GenServer Kanban.InfrastructureMonitor terminating
** (MatchError) no match of right hand side value: {:error, {:http_error, 400, %{body: "<ErrorResponse xmlns=\"http://autoscaling.amazonaws.com/doc/2011-01-01/\">\n <Error>\n <Type>Sender</Type>\n <Code>ValidationError</Code>\n <Message>AutoScalingGroup name not found - AutoScalingGroup swarm-asg not found</Message>\n </Error>\n <RequestId>d1f4d394-2473-4b1c-8cec-524a8869d3fd</RequestId>\n</ErrorResponse>\n", headers: [{"x-amzn-RequestId", "d1f4d394-2473-4b1c-8cec-524a8869d3fd"}, {"Content-Type", "text/xml"}, {"Content-Length", "324"}, {"Date", "Wed, 22 Oct 2025 10:43:34 GMT"}, {"Connection", "close"}], status_code: 400}}}
(kanban 0.1.0) lib/kanban/infrastructure/monitor.ex:37: Kanban.InfrastructureMonitor.handle_continue/2
(stdlib 5.1.1) gen_server.erl:1067: :gen_server.try_handle_continue/3
(stdlib 5.1.1) gen_server.erl:977: :gen_server.loop/7
(stdlib 5.1.1) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Last message: {:continue, :init}
I checked the autoscale name, it is definitely named swarm-asg not sure what could be happening.
The only thing different from the book is that I am using ap-southeast-2 as region.
First Post!
elliefairholm
Hello @hjemmel, I’m so sorry for the latest reply ever here.
The AWS region automatically defaults to eu-west-1, so it looks like the app is not finding your autoscaling group when calling the AWS API. You can set the region to be ap-southeast-2 by adding the AWS_REGION environment variable to the web service in your compose.yaml file.
Hope that works!
Popular Pragmatic Bookshelf topics
Other popular topics
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /java
- /clojure
- /typescript
- /emacs
- /haskell
- /svelte
- /onivim
- /kotlin
- /react
- /c-plus-plus
- /crystal
- /tailwind
- /gleam
- /ocaml
- /elm
- /vscode
- /flutter
- /html
- /ash
- /deepseek
- /zig
- /opensuse
- /php
- /centos
- /react-native
- /scala
- /lisp
- /sublime-text
- /textmate
- /nixos
- /debian
- /agda
- /deno
- /django
- /nodejs
- /kubuntu
- /arch-linux
- /ubuntu
- /spring
- /revery
- /manjaro
- /julia
- /quarkus
- /lua
- /diversity
- /laravel









