A Config rule that checks whether the Amazon EC2 instances in your account are managed by AWS Systems Manager.

CloudFormation Template