State Manager vs Maintenance Window

0

Hello,
Can someone please show some light on me with the difference between State Manager vs Maintenance Window ? As I see both oh them require an SSM Document, Targets and a Schedule; so why would you go with one or the other?

Thank you.

已提問 4 年前檢視次數 574 次
3 個答案
0
已接受的答案

Hi igarciaGT,

Thank you for reaching out with your query.

I see that you’d like to know the differences between State Manager and Maintenance Windows.

AWS Maintenance Window let’s you define a schedule for when to perform certain actions on your instances (like patching) or several other AWS services (S3, KMS, etc). In contrast, AWS State Manager is a Configuration Management service which automates the process of keeping EC2 instances in a defined state by creating an association. There are a handful of actions you can perform using State Manager as described in [1].

Further differences are described as follows,

  • State Manager can only take managed EC2 as targets while Maintenance windows supports multiple AWS services [2].
  • State Manager supports less CRON expressions [3] than Maintenance Windows [4].
  • State Manager is applied on a schedule, same as Maintenance Windows. However, if a target instance is stopped during the schedule of the State Manager association, the association will not be skipped and will be applied when the target is started the next time. Maintenance Window is only applied during the schedule and is skipped if any target is not available.
  • The tasks that can be performed using State Manager are limited (in comparison to Maintenance Window), as it is a configuration management service, and can be viewed here [1]. Maintenance Windows, however, can be used to perform a range of tasks and the examples can be found here [2].
  • I am also listing some walkthroughs for State Manager [5] and Maintenance Window [6] for you to have a look.

Please go through the provided documents to learn more on these services.

I hope the provided information helps.

Have a great day!

References:
[1] https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-state.html
[2] https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-maintenance.html
[3] https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html#reference-cron-and-rate-expressions-association
[4] https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html#reference-cron-and-rate-expressions-maintenance-window
[5] https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-state-walk.html
[6] https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-window-walkthroughs.html

已回答 4 年前
0

Thank you very much for your answer.
This is a lot of helpful information.
Have a wonderful day.

已回答 4 年前
0

Hello,

Thank you for using AWS Systems Manager and providing us feedback.

Here is the recent guide we published walking through different scenarios and when to use State Manager vs Maintenance Windows. In addition we have walk-through examples in the documentation. Also we have enabled a feature called Quick Setup if you want to setup common best practices across all of your instances.
https://docs.aws.amazon.com/systems-manager/latest/userguide/state-manager-vs-maintenance-windows.html
https://aws.amazon.com/about-aws/whats-new/2019/08/easily-enable-aws-systems-manager-capabilities-with-quick-setup/

Regards,
Upender

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南