无法访问AWS Elastic Beanstalk站点。

huangapple go评论45阅读模式
英文:

Unable to access AWS Elastic Beanstalk site

问题

我已经创建了一个AWS EB Web应用程序,使用Linux上的.NET Core,示例应用程序,使用aws-elasticbeanstalk-service角色作为服务角色,并创建了一个EC2实例配置文件。有了这个设置,我只需跳过审查并创建资源。

环境成功部署,就我所知,但是然后应用程序在URL上不可用。如果我不使用实例配置文件部署,部署会失败。

可能实例配置文件没有系统需要的某些权限,但如果是这种情况,我会期望部署失败。我可以确认它具有AdministratorAccess-AWSElasticBeanstalk权限。

我已检查了实例安全组的入站规则 - 它是端口80 0.0.0.0/0,应该允许一切。

健康状态为"等待",然后最终为"无数据"。我尝试了多个平台,都是相同的结果。我已经没有更多的想法了。似乎有点奇怪,它不会直接运行。

英文:

I've created an AWS EB web app, .Net Core on Linux, sample app, with the aws-elasticbeanstalk-service role as the service role and an EC2 Instance profile I've created. With that in place, I just skip to review and create the resource.

The environment deploys successfully, as far as I can tell, but then the application is not available at the URL. If I deploy without the instance profile, the deployment fails.

It's possible the instance profile doesn't have some permission the system needs, but I would expect the deployment to fail if that were the case. I can confirm that it does have the AdministratorAccess-AWSElasticBeanstalk permission.

I've checked the inbound rules for the instance security group - it's port 80 0.0.0.0/0, which should allow everything.

Health status is "pending", and then eventually "No Data". I've tried multiple platforms, same result. I'm out of ideas. Seems kind of weird that it wouldn't just work out of the box.

答案1

得分: 2

根据服务角色、实例配置文件和用户策略,请检查以下实例配置文件权限:<br/>
AWSElasticBeanstalkWebTier<br/>
AWSElasticBeanstalkWorkerTier<br/>
AWSElasticBeanstalkMulticontainerDocker

这应该适用于示例应用程序(dotnet-core-linux.zip)

我建议您阅读以下内容以进行进一步开发: 教程:使用 Elastic Beanstalk 部署 ASP.NET Core 应用程序<br/>
了解 ElasticBeanstalk 的更多信息,请参阅: Elastic Beanstalk 概念

英文:

According to Service roles, instance profiles, and user policies, please check the following instance profile permissions:<br/>
AWSElasticBeanstalkWebTier<br/>
AWSElasticBeanstalkWorkerTier<br/>
AWSElasticBeanstalkMulticontainerDocker

This should work with the sample application (dotnet-core-linux.zip)

I recommend you read this for further development: Tutorial: Deploying an ASP.NET core application with Elastic Beanstalk<br/>
This to better understand ElasticBeanstalk: Elastic Beanstalk concepts

huangapple
  • 本文由 发表于 2023年6月9日 03:31:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76435150.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定