Does User Data run every time the EC2 instance restarts?

No, by default, EC2 User Data runs only once, during the very first boot cycle when the instance is launched. It does not run when the instance is stopped and restarted or rebooted.
الرجاء تسجيل الدخول للسؤال والإجابة والمشاركة والإبداء والتصويت.