hjemmel

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

elliefairholm

Author Engineering Elixir Applications

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!

Where Next?

Popular Pragmatic Bookshelf topics Top

brianokken
Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
simonpeter
When I try the command to create a pair of migration files I get an error. user=&gt; (create-migration "guestbook") Execution error (Ill...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
HarryDeveloper
Hi @venkats, It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
jskubick
I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. As entered, the SwitchCompat changes color to hol...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
a.zampa
@mfazio23 I’m following the indications of the book and arriver ad chapter 10, but the app cannot be compiled due to an error in the Bas...
New
redconfetti
Docker-Machine became part of the Docker Toolbox, which was deprecated in 2020, long after Docker Desktop supported Docker Engine nativel...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
AstonJ
Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: asdf install erlang 23.1.2 Configure failed. checking ...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1147 29994 760
New
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
PragmaticBookshelf
25 puzzles that will make you a better C programmer by challenging your knowledge of the language, and explaining the technical details o...
New
PragmaticBookshelf
Overarching tutorial for Python beginner and intermediate developers that teaches web development with the Flask framework. Miguel Gr...
New
PragmaticBookshelf
Use advanced functional programming principles, practical Domain-Driven Design techniques, and production-ready Elixir code to build scal...
New
PragmaticBookshelf
Write elegant Ruby code—not just correct, but idiomatic. Go beyond the vocabulary and syntax and learn to express yourself with eloquence...
New

Latest in Engineering Elixir Applications

Engineering Elixir Applications Portal ❯

Sub Categories: