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
asked a month ago214 views
2 Answers
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
answered a month ago
profile picture
EXPERT
reviewed a month ago
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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions