有没有办法让EB CLI将zip包上传到环境中但不实际部署它?这可以在Web控制台上完成,但我希望CI服务器中每个构建的输出通过EB CLI上传到Elastic Beanstalk,但实际上只部署了选定的构建(此步骤将在Web控制台中手动完成)
是否有任何官方方法或“正确方法”将返回的平台之一转换为eb platform list列出的 eb 解决方案堆栈的最新版本aws elasticbeanstalk list-available-solution-stacks --query 'SolutionStacks'
我尝试使用 EB CLI 创建新的 Elastic Beanstalk 环境,但由于选项无效而失败,即使我的配置中未设置该选项。
我正在运行的命令:
$ eb create my-new-environment -v --timeout 15
Run Code Online (Sandbox Code Playgroud)
我收到的错误:
2020-09-27 08:45:00 ERROR "option_settings" in one of the configuration files failed validation. More details to follow.
2020-09-27 08:45:00 ERROR Invalid option value: '1.0' (Namespace: 'aws:autoscaling:updatepolicy:rollingupdate', OptionName: 'MinInstancesInService'): You can't enable rolling updates for a single-instance environment.
2020-09-27 08:45:01 ERROR Failed to launch environment.
Run Code Online (Sandbox Code Playgroud)
但我没有aws:autoscaling:updatepolicy:rollingupdate在我的配置文件中指定!
# .ebextensions/settings.config
option_settings:
aws:elasticbeanstalk:managedactions:
ManagedActionsEnabled: true
PreferredStartTime: "Thu:04:00"
aws:elasticbeanstalk:managedactions:platformupdate:
UpdateLevel: minor
InstanceRefreshEnabled: true
aws:elasticbeanstalk:command:
DeploymentPolicy: AllAtOnce
aws:elasticbeanstalk:environment:
EnvironmentType: …Run Code Online (Sandbox Code Playgroud) 所以我有一个带有适当Procfile / Buildfile的Java应用程序。
我已经在临时的Elastic Beanstalk环境中运行过eb create,但我必须跟进手动配置更改,以使其成为单个实例类型vs负载平衡。
我将如何使用eb-cli在eb create $ENVIRONMENT_NAME其上生成单个实例环境的地方?
有一个.elasticbeanstalk / config.yml
branch-defaults:
development:
environment: development
group_suffix: null
staging:
environment: staging
group_suffix: null
production:
environment: production
group_suffix: null
global:
application_name: feed-engine
branch: null
default_ec2_keyname: null
default_platform: Java 8
default_region: us-east-1
profile: prod
repository: null
sc: git
Run Code Online (Sandbox Code Playgroud) 如何防止每次部署中特定文件夹被替换?考虑下面的目录结构:
-- /.ebextensions
-- /app
-- /database
-- /public
---- /css
---- /js
---- /images
Run Code Online (Sandbox Code Playgroud)
我正在为我的 PHP 应用程序使用 AWS CodeCommit 和 EB CLI,每次运行时eb deploy这些文件和目录都会被替换,因此我想排除该/public/images目录,以便以前上传的图像在更新版本后仍然存在已部署。
我整个星期都在研究他们的文档,但找不到任何可能的解决方案。Elastic Beanstalk 可以做到这一点吗?或者任何关于在 AWS 中部署的替代建议将非常感激。提前致谢!