1 Answers
The Run Command allows to you issue an command to managed instances right now, to be performed once. These commands may or may not alter the configuration state of the OS on the managed instance.
State Manager is similar to Chef, Puppet, or Ansible. SSM hands a set of instructions to the managed instanced and says "keep yourself configured like this until I tell you otherwise". State Manager allows a system to regularly check itself against the SSM’s instructions, and adjust for configuration drift automatically.
So, you use the Run Command when you need to make one or more managed instances do something (which may or may not be OS configuration) once, right now, and State Manager to apply a configuration to one or more managed instances which the managed instance can automatically maintain until new instructions are received.
Thank you for the quick response Steve that makes sense. I remember looking at a practice question that asked about moving logs at a specific time everyday from a server to S3. Would Automation be best for this or does that count more for the State of the instance?
I just remembered that with Automation you cant schedule based on time, which is strange no? So using State Manager is the only way to do it