aws-notebook

My AWS Notebook

View the Project on GitHub kyhau/aws-notebook

Connecting to EC2

EC2 Instance Connect vs. Session Manager

See also Different between EC2 Instance Connect and Session Manager.

  1. EC2 Instance Connect
    1. Role: No need
    2. S.G.: Need
    3. IPv4: Yes
    4. Browser: Yes, Safari not working (as of 2019-08-15)
    5. CloudTrail: Yes
  2. Session Manager
    1. Role: Need
    2. S.G.: No need
    3. IPv4: Depends**
    4. Browser: Yes
    5. CloudTrail: Yes
    6. Beware of active session. A session remains active even you revoke an IAM role.
    7. Need to tighten the CloudWatch Log of session manager - a user can cat a sensitive file and all content goes to the session log.
    8. Make sure correct permission in place to control who can see the log, no one can change the logs, and who can change the log group and roles.

Notes