(Optional) Using the SDK to query Elastic Beanstalk

Trong phần này, bạn sẽ sử dụng Java SDK để kiểm tra môi trường AWS của mình và truy vấn thông tin về Elastic Beanstalk.

  1. Download BeanstalkManager.zip file. BeanstalkManager is a sample Java application that uses the AWS Elastic Beanstalk API SDK.
  1. Unzip and open the project in Eclipse IDE.

UseSDKQueryEB

  1. Run Unit Test for this application.

UseSDKQueryEB

  1. Unit Test will return the following information:
  • List applications registered with Elastic Beanstalk in the default region.
  • List registered applications and Application Versions.

UseSDKQueryEB

If you don’t see any results, you have selected the wrong region. Check the file src/main/java/idevelop.samples/AmazonElasticBeanstalkClientFactory.java to see if you have selected the correct region.

This sample application gives you an idea of how you can use the SDK to retrieve information about your Elastic Beanstalk environment.