



In this workshop, you will use AWS Session Manager to connect to EC2 instances. Session Manager is a fully managed AWS Systems Manager capability. Systems manager allows you to manage Amazon EC2 instances and on-premises virtual machines (VMs) through a browser-based shell. Session Manager provides secure and auditable instance management without the need to open inbound ports, maintain a bastion host, or manage SSH keys.
Refer to First Cloud AI Journey Lab for an in-depth understanding of Session manager.


This EC2 instance is already running in “VPC cloud” and will be used to test connectivity to Amazon S3 through the Gateway endpoint you just created (s3-gwe).

Session Manager will open a new browser tab with a shell prompt: sh-4.2 $

You have successfully started the connection session to EC2 in VPC Cloud. In the next step, we will create an S3 bucket and a file in it.
cd ~ in the CLI


You have successfully uploaded the file to your S3 bucket. You can now end the session.

Congratulation on completing access to S3 from VPC. In this section, you created a Gateway endpoint for Amazon S3, and used the AWS CLI to upload an object. The upload worked because the Gateway endpoint allowed communication to S3, without needing an Internet Gateway attached to “VPC Cloud”. This demonstrates the functionality of the Gateway endpoint as a secure path to S3 without traversing the Public Internet.