Skip to content

AWS Command Line Cheat Sheet

This page contains a list of commonly used commands that I use working with AWS.

How to SSH to EC2 using AWS Session Manager?

  • EC2 must have AmazonSSMManagedInstanceCore IAM policy or similar customer-managed.
  • Install Session Manager plugin.
aws ssm start-session --target <instance-id>

How to connect to Amazon EKS cluster?

aws eks update-kubeconfig --name <eks-name> --region <your-region>
Back to top