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 个月前226 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则