Engineering Elixir Applications: Chapter 10 (page 323)

In reviewing the code for this chapter (autoscaling_and_optimizing_your_deployment_strategy -
modules/cloud/aws/compute/swarm/main.tf), I notice you removed the null resource “wait_for_swarm_ready_tag” from the file. Yet, you refer to it on page 323.

I’m not able to autoscale whether I use your main.tf (and autoscaling.tf) or follow your instructions in the book. So could you clarify what code I should be running (main.tf, autoscaling.tf, deploy.sh, launch_node.sh)? Also, can you help me understand why you’ve created module_1 through module_6 in that section and how they relate to this chapter. For example, does module_1 capture pages xx - xx in the book?

Thanks!

Hi @adkelley, thank you for your comment and apologies for the late reply. Please follow the instructions in the book.

The modules_1, modules_2 (etc.) folders are different versions of the modules folder as the chapter progresses. We are aware of the confusion that the current code folder might be generating and we are trying to update that on the prag prog side, but we are having some issues because the book was already on it way to its final print version. We’ll shortly make a public repo containing the examples of the book following a folder structure that we hope will make more sense to you.

But in the meantime, please follow the instructions in the book itself.

Thanks!