AWSEC2 User DataEC2 User DataTo run a bash script on a new EC2 instance, you can use the user data feature. For more information, see User Data.