Here user_data needs to be a string of the bytes to include in the RunInstance request. This will end up sending the file name as user-data.