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
질문됨 한 달 전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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠