Elastic Beanstalk with Loadbalancer - No Data from Instance for new Environments

0

Hello, we have multiple environments with the same configuration: Application Loadbalancer with min 1 / max 1 t2 instance, to assign SSL certificates. Loadbalancer in subnet a and b, instance in subnet b. I created some in the past, the last 1 month ago. And all work fine. But now when i create a new one with default settings and example application, it wont work with the loadbalancer. I tried a few times with PHP 8.1 and Node 18, configuration is the same as the current working environments. Elastic Beanstalk gets Status No Data, cannot communicate with the instance. The EC2 instances get no IPV4-DNS, in the past every instance automatically got the IP. Dont know if it is the only problem here. If i switch to single instance, everything works. Has something changed with the loadbalancers? Are there default security groups that i have to use to get it work?

Thanks in advance.

Best Regards, Andreas

Andreas
已提問 8 個月前檢視次數 375 次
3 個答案
0

Hello.

Does this mean that deploying more than 2 EC2s will cause an error?
Also, are "enableDnsHostnames" and "enableDnsSupport" set to "True" in the VPC you are using?
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-support

By the way, if you want to change the security group, you can follow the procedure in the following document.
https://repost.aws/knowledge-center/elastic-beanstalk-add-security-group
https://repost.aws/knowledge-center/security-group-elastic-beanstalk

profile picture
專家
已回答 8 個月前
0

Hello, no, the problem is with 1 EC2 instance via Loadbalancer. The VPC DNS Settings are set, thats why earlier environments worked / still working. There was no changes on our side. Regards, Andreas

Andreas
已回答 8 個月前
0

It seems that we got it. With Loadbalancer it needs the option "public ip address". That was not neccessary on older applications with PHP <= PHP 8.0 and NodeJS 14.

Andreas
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南