我可以在没有平台的情况下运行 Elastic Beanstalk 吗?

我可以在没有平台的情况下运行 Elastic Beanstalk 吗?

我想运行 Elastic Beanstalk,仅使用 nginx 来从 EFS 提供文件(也许这有点小题大做?)。

我尝试在不指定 config.yml 的情况下进行设置default_platform:,但这只会使其默认为 Java 8。

eb create然后失败

ERROR: Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile.
ERROR: [Instance: i-34a55904] Command failed on instance. Return code: 1 Output: (TRUNCATED)...config/logging.yml  
Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile.
Unable to launch application as the source bundle does not contain either a file named application.jar or a Procfile. 
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/01_configure_application.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
WARN: Environment health has transitioned from Pending to Degraded. Command failed on all instances. Initialization completed 16 seconds ago and took 3 minutes.
ERROR: Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
WARN: Environment health has transitioned from Degraded to Severe. Command failed on all instances. ELB health is failing or not available for all instances.

ERROR: The operation timed out. The state of the environment is unknown. The timeout can be set using the --timeout option.

因为没有可用的 Java 应用程序。

有没有办法设置一个只运行 nginx 而没有任何平台支持的弹性 beantalk 环境?

答案1

如果您只是提供静态文件,那么这有点过头了。您应该使用 S3 来提供静态文件。这不需要 Beanstalk 或 EC2 实例。请参阅此关联了解更多信息。

尽管我很喜欢 AWS 解决方案,但你也可以使用Github 页面免费。

如果这些页面不是静态的,那么您将需要定义一个平台。

相关内容