OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

AWS-ElasticBeanstalk: Where to find what does Beanstalk auto-created domain name point to?

  • Thread starter Thread starter user7858768
  • Start date Start date
U

user7858768

Guest
I have created ElasticBeanstalk web server (EC2, Java8 Tomcat with SpringBoot) using AWS-CodeStar.

By default, Beanstalk environment was created as a single instance (not load balanced), and from the beginning of environment creation there there was a working link shown in the Beanstalk console:

In the form of: receptionapp.<>.us-west-1.elasticbeanstalk.com

enter image description here

This link is accessible publically and successfully returns hello world response from the server when called from the Chrome browser:

Code:
{"Output":"Hello World!"}

Now Beanstalk documentation states:

By default, your environment is available to users at a subdomain of elasticbeanstalk.com. When you create an environment, you can choose a hostname for your application. The subdomain and domain are autopopulated to region.elasticbeanstalk.com. To route users to your environment, Elastic Beanstalk registers a CNAME record that points to your environment's load balancer. You can see URL of your environment's application with the current value of the CNAME in the environment overview page of the Elastic Beanstalk console. -- https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html

"Elastic Beanstalk registers a CNAME record that points to your environment's load balancer" -- There was no load balancer at first and the link worked presuming I remember correctly. I have since added a load balancer by switching the Beanstalk configuration to be load balanced.

Minor question: What in the world did the link point to? Directly to the EC2 instance?

And Major question: Where do I find what this link is actually doing? I have looked around Route53, and around EC2 LoadBalancers, also looked in command line eb config and there doesn't seem to be any mentions of this domain name receptionapp.<>.us-west-1.elasticbeanstalk.com link, or where it points to. (Right now I don't even know whether it points to LoadBalancer that was added by Beanstalk as configuration change)
<p>I have created ElasticBeanstalk web server (EC2, Java8 Tomcat with SpringBoot) using AWS-CodeStar.</p>
<p>By default, Beanstalk environment was created as a single instance (not load balanced), and from the beginning of environment creation there there was a working link shown in the Beanstalk console:</p>
<p>In the form of: <code>receptionapp.<>.us-west-1.elasticbeanstalk.com</code></p>
<p><a href="https://i.sstatic.net/7lO4D.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7lO4D.png" alt="enter image description here" /></a></p>
<p>This link is accessible publically and successfully returns hello world response from the server when called from the Chrome browser:</p>
<pre><code>{"Output":"Hello World!"}
</code></pre>
<p>Now Beanstalk documentation states:</p>
<blockquote>
<p>By default, your environment is available to users at a subdomain of elasticbeanstalk.com. When you create an environment, you can choose a hostname for your application. The subdomain and domain are autopopulated to region.elasticbeanstalk.com.
To route users to your environment, Elastic Beanstalk registers a CNAME record that points to your environment's load balancer. You can see URL of your environment's application with the current value of the CNAME in the environment overview page of the Elastic Beanstalk console.
-- <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html</a></p>
</blockquote>
<p>"Elastic Beanstalk registers a CNAME record that points to your environment's load balancer" -- There was no load balancer at first and the link worked presuming I remember correctly. I have since added a load balancer by switching the Beanstalk configuration to be load balanced.</p>
<p>Minor question: What in the world did the link point to? Directly to the EC2 instance?</p>
<p>And Major question: Where do I find what this link is actually doing? I have looked around Route53, and around EC2 LoadBalancers, also looked in command line <code>eb config</code> and there doesn't seem to be any mentions of this domain name <code>receptionapp.<>.us-west-1.elasticbeanstalk.com</code> link, or where it points to. (Right now I don't even know whether it points to LoadBalancer that was added by Beanstalk as configuration change)</p>
Continue reading...
 

Latest posts

Top