AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Listing and Connecting to Server Instances

You can view a list of Amazon EC2 instances running your AWS Elastic Beanstalk application environment through the AWS Management Console. You can connect to the instances running Tomcat or PHP using any SSH client. For more information about listing and connecting to Server Instances using the AWS Toolkit for Eclipse, see Listing and Connecting to Server Instances. You can connect to the instances running Windows using Remote Desktop. For more information about listing and connecting to Server Instances using the AWS Toolkit for Visual Studio, see Listing and Connecting to Server Instances.

Important

You must create an Amazon EC2 key pair and configure your AWS Elastic Beanstalk–provisioned Amazon EC2 instances to use the Amazon EC2 key pair before you can access your AWS Elastic Beanstalk–provisioned Amazon EC2 instances. You can set up your Amazon EC2 key pairs using the AWS Management Console. For instructions on creating a key pair for Amazon EC2, go to the Amazon EC2 Getting Started Guide. For more information on how to configure your Amazon EC2 instances to use an Amazon EC2 key pair, see Amazon EC2 Key Pairs.

To view and connect to Amazon EC2 instances for an environment

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. From the region list, select a region.

  3. In the navigation (left) pane of the console, click Load Balancers.

    AWS Elastic Beanstalk Load Balancer Console
  4. Load balancers created by AWS Elastic Beanstalk will have a awseb in the name. Find the load balancer for your environment and click it.

    AWS Elastic Load Balancing Window
  5. Click the Instances tab in the bottom pane of the console window.

    AWS Elastic Load Balancing Window

    A list of the instances that the load balancer for your AWS Elastic Beanstalk environment uses is displayed. Make a note of an instance ID that you want to connect to.

  6. Click the Instances link in the left side of the Amazon EC2 console, and find your instance ID in the list.

    Amazon EC2 Instances
  7. Right-click the instance ID for the Amazon EC2 instance running in your environment's load balancer, and then select Connect from the context menu.

  8. Make a note of the instance's public DNS address on the Description tab.

  9. To connect to an instance running Linux, use the SSH client of your choice to connect to your instance and type ssh -i .ec2/mykeypair.pem ec2-user@<public-DNS-of-the-instance> . For instructions on how to connect to an instance running Windows, see Connect to your Windows Instance in the Amazon Elastic Compute Cloud Getting Started Guide.

For more information on connecting to an Amazon EC2 instance, see the Amazon Elastic Compute Cloud Getting Started Guide.