Cannot output the url of my beanstalk

天涯浪子 提交于 2019-12-08 07:24:32

问题


I am having a problem with outputting beanstalk url in my cloudformation:

Here is my outputcode:

Outputs:
ELB:
  Description: 'The environment name'
  Value: !GetAtt BeansEnvironmentUI.EndpointURL

But what I see in the output in the url of loadbalancer:

awseb-e-k-AWSEBLoa-NP5ZWGTVP2FV-1714896666.us-east-1.elb.amazonaws.com

This is not what I want. When I look at the beanstalk console itself I see the following:

myenv.prejvvvgq2.us-east-1.elasticbeanstalk.com

which is what I am looking for. So here is the format of the above url:

[nameOftheEnvironment].[IdoNotKnowWhatItIsButItIsTheSameInAllEnvironments].[region].elasticbeanstalk.com

So in the above format there is one thing I do not know what it is: this section

IdoNotKnowWhatItIsButItIsTheSameInAllEnvironments

So what I am gussing is it is the physical id of the beanstalk app which contains the environment. Am I right? If yes how can I get it in my cloudformation code?

来源:https://stackoverflow.com/questions/46751104/cannot-output-the-url-of-my-beanstalk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!