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!