Use Session Manager to manage Amazon Elastic Compute Cloud (Amazon EC2) instances or on-premises instances. Session Manager connects through a browser-based shell, or through the AWS CLI.
Use Identity and Access Management (IAM) policies to control the users who can use Session Manager to access your instance. The IAM policy also controls the API actions that the users can perform.
Note: The Amazon Resource Name (ARN) in the example policy uses the AWS Region us-east-1 and includes placeholders for the instance ID and account ID. Replace instance ID with your instance's ID number. Replace account ID with your AWS account.