You updated User Data but new instances still use old scripts. Why?

New instances keep using old user‑data because EC2 user data is stored in the Launch Template or AMI, and cloud-init runs it only on first boot, so updating user data on an existing instance does not change what future instances receive.
الرجاء تسجيل الدخول للسؤال والإجابة والمشاركة والإبداء والتصويت.