AWS SDK for Ruby
Developer Guide

Getting Information about a Specific Application in AWS Elastic Beanstalk

The following example lists the name, description, and URL of the MyRailsApp application in the us-west-2 region.

require 'aws-sdk-elasticbeanstalk' # v2: require 'aws-sdk' eb = Aws::ElasticBeanstalk::Client.new(region: 'us-west-2') app = eb.describe_applications({application_names: [args[0]]}) if app.exists? puts "Name: #{app.application_name}" puts "Description: #{app.description}" envs = eb.describe_environments({application_name: app.application_name}) puts "URL: #{envs.environments[0].cname}" end