UserData specifies first-launch bash and cloud-init commands. See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html for documentation and examples.