Creating an AutoScalingGroup for this stack specifically. We can figure out how to have a central autoscaling group and multiple stacks running in them, once we finalise on our AWS strategy.
Per voice w/ @arunasank retaining bash steps in userdata.
Separating out into multiple files requires git installation as a first step, followed by git clone and then a series of steps to reach the right folder. All tied up, this looks as big the original script within the template.
All scripts run in the right order, but somehow one script does not read the dependencies setup through another. Seems like each fo this script runs in a different environment and programs installed through one script is not accessible in another. We felt it is not worth investing time in investigating further.
For these reasons, bringing back the script to the same place. Executed, files uploaded to S3. We're good to go here!
Creating an AutoScalingGroup for this stack specifically. We can figure out how to have a central autoscaling group and multiple stacks running in them, once we finalise on our AWS strategy.
cc/ @ramyaragupathy