Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Session Manager / Use and configuration

Session Manager - Simplified

  • Alternative login to your ec2 instances via session manager
    • Make sure you are using vm with session manager installed
    • Your instance is attached with a iam role that has following policy attached:
      • policy_arn = “arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore”
    • Get the instance id from aws and try login with aws-cli as:
      aws ssm start-session --target "i-1234567890abcdef0"

      You will get a error, like following:

      SessionManagerPlugin is not found. Please refer to SessionManager Documentation here:
    • Install the plugin first ;)
      yay -S aws-session-manager-plugin

      and retry, you will be able to login.

      Starting session with SessionId: thapakazi-00xxx123


    • Todo:
      • upgrade easyssh to support login with ssm-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment