Home > Back-end >  AWS - Autoscaling execute userdata when in Stopped state
AWS - Autoscaling execute userdata when in Stopped state

Time:07-27

I was wondering if 'UserData' can be executed even when the EC2 instances in the Auto-Scalin-Group Warm-Pool are initialized with 'Stopped' state, I know when they are initialized and are in 'Running' state, the userdata executes.

Note: I am using Launch configuration to add userdata.

CodePudding user response:

The "stopped" state indicates that the EC2 virtual machine is "off". In other words it's in the same as a physical computer with the power off. There's no way to run anything in that state.

  • Related