in load_test/load_test_stack.py [0:0]
def get_userdata(self, is_master):
# generate the ec2 userdata required
userdata = ec2.UserData.for_linux()
# Scripts entered as user data are run as the root user, so do not use the sudo command in the script.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html#user-data-shell-scripts
userdata.add_commands("""