Ensure that all your Amazon EC2 instances are managed by Systems Manager (SSM). Systems Manager simplifies AWS cloud resource management, shortens the time to detect and resolve operational problems, and makes it easy to operate and manage your instances securely at scale. For Amazon EC2 instances to be monitored and managed with Amazon Systems Manager service, they must be configured as managed instances. In order for EC2 instances to be managed by Systems Manager and be available in the list of managed instances, your instances have to meet 3 primary requirements:
- The SSM Agent must be installed on an instance with a supported Operating System (OS).
- An AWS Identity and Access Management (IAM) instance profile that supplies the required permissions for the instance to communicate with the Systems Manager service must be attached to the EC2 instance.
- The SSM Agent must be able to connect to a Systems Manager endpoint in order to register itself with the service. Then, the instance must be available to the SSM service, which is confirmed by the service sending a signal every five minutes to check the instance's health.
Because there is a delay between an Amazon EC2 instance becoming operational and the SSM agent being active, a delay period for recently launched instances must be configured within the rule settings, in your TrendAI Vision One™ Cloud Risk Management Dashboard. If the delay period is not configured in the rule settings, the default threshold of 3 minutes will apply.
This rule can help you work with the AWS Well-Architected Framework.
excellence
Amazon Systems Manager through Fleet Manager feature offers multiple benefits for managed Amazon EC2 instances. Some of these benefits are:
- Perform a variety of common systems administration tasks without having to manually connect to your EC2 instances.
- Manage EC2 instances running on multiple platforms from a single unified console.
- Manage EC2 instances running different Operating Systems from a single unified console.
- Improve the efficiency of your systems administration.
- Control access to Fleet Manager feature using AWS Identity and Access Management (IAM) policies. With these policies, you can control which individual IAM users or groups can use various Fleet Manager capabilities, and which Amazon EC2 instances they can manage.
Audit
To determine if your Amazon EC2 instances are managed by Systems Manager (SSM), perform the following actions:
Remediation / Resolution
Manually installing software for multiple Amazon EC2 instances can be tedious and error prone. To ensure that all your running Amazon EC2 instances are managed by the Systems Manager (SSM) service, perform the following actions:
References
- AWS Documentation
- AWS Systems Manager Fleet Manager
- AWS Systems Manager Managed Instances
- Systems Manager prerequisites
- Quick Setup Host Management
- Troubleshooting Amazon EC2 managed instance availability
- Creating associations
- AWS Command Line Interface (CLI) Documentation
- describe-instances
- associate-iam-instance-profile
- describe-instance-information
- create-association
- create-role
- attach-role-policy
- create-instance-profile
- add-role-to-instance-profile