Systems Manager Session Manager

248 단어·2 분·원문(.md)

Motivation for Session Manager #

As the number of EC2 instances increases, managing different pem files becomes difficult.

Even when managed with a Bastion Host, there's the inconvenience of having to go through the Bastion Host every time you connect.

Session Manager was introduced to solve this problem.

Session Manager #

Systems Manager Session Manager

  • A fully managed AWS service that allows you to manage EC2 and on-premises instances, as well as virtual machines, via a browser-based shell or the AWS CLI.

Systems Manager #

AWS Systems Manager allows you to manage things that were originally managed in a very complex way, as shown in the top image, in the simpler way shown in the bottom image.

Advantages of Session Manager #

  1. A managed service that provides one-click access to instances.
  2. Allows logging into instances without an SSH connection, without needing to open ports, and without maintaining a bastion host.
  3. Controllable at the IAM user level (no need to control with key files).
    • E.g., when you need to individually manage key files for logging into hundreds of instances.
    • When you want to allow developers to log in only to instances designated for their team.
  4. Browser-based, usable regardless of OS.
  5. Logging and Auditing.
    • You can check when, where, and who connected (CloudTrail).
    • Connection logs and all used commands and output can be sent to S3 or CloudWatch.
    • Integrates with AWS services, enabling various scenarios.
      • E.g., receiving real-time notifications for access by integrating with EventBridge, etc.
DevOps/aws/session_manager.md