Elastic beanstalk web site not running (first time)

0

Hello. I've got a node v20 application at home and I tried to make it work in Elastic Beanstalk environment too. I uploaded a zip and answered a lot of form items. Now I have my 'production-env' but can't make it work.

I continue to get the same error: "The security group 'awseb-e-mewx92npsv-stack-awsebsecuritygroup-xxxxxxxxx' does not exist in VPC 'vpc-0b8f7f0xxxxxxxx'" (I replaced some characters for 'xxxx' just in case. I verified that the VPC id is indeed inside that security group. I've verified the IAM role... rebuild the app, etc. I don't know what else to do. Instance health says "degraded" I can't activate logs because of that health status I think it said.

"Environment health has transitioned from Pending to Degraded. Auto Scaling activity failed 27 seconds ago with error: The security group 'awseb-e-mewx92npsv-stack-awsebsecuritygroup-xxxxxxxxx' does not exist in VPC 'vpc-0b8f7f0xxxxxxxx'. Launching EC2 instance failed. At 2024-03-27T03:19:22Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1. Initialization completed 65 seconds ago and took 51 seconds. There are no instances. Auto Scaling group desired capacity is set to 1."

Please tell me what else to paste here, to explain, or how to solve it :-) Thanks! Mariano

Mariano
已提問 1 個月前檢視次數 227 次
2 個答案
1

Thank you, I solved it, I guess the issue was related with permissions policies: I deleted the environment, created a new one and when I chose the ec2 instance profile, this time I created a new set of policies according the suggestion pointed there in the form in a pop-up window. Now on the public URL the site I'm trying to deploy I get "502 Bad Gateway, nginx" but that's a different story :-)

Mariano
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
0

Hello.

Is the security group created in the same VPC that you selected when you created your ElasticBeanstalk environment?
Also, will the EC2 I'm trying to launch with ElasticBeanstalk be launched in the same VPC as the security group?

profile picture
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

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

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

回答問題指南