gpt4 book ai didi

amazon-elastic-beanstalk - 云信息 : Create ElasticBeanstalk without Load Balancer

转载 作者:行者123 更新时间:2023-12-03 07:37:23 25 4
gpt4 key购买 nike

如何创建 ElasticBeanstalk environment没有负载均衡器?我在 aws:autoscaling:launchconfiguration 中没有任何选项可以禁用它.

可以turn off load balancing manually从 AWS 管理控制台。

这是我的 Cloudformation 堆栈模板:

WsServerEBApp:
Type: "AWS::ElasticBeanstalk::Application"
Properties:
ApplicationName: WS Server
Description: App for Websocket Server that will hold EB Environments

WsServerEBEnvironemt:
Type: 'AWS::ElasticBeanstalk::Environment'
Properties:
EnvironmentName: staging
ApplicationName: !Ref WsServerEBApp
CNAMEPrefix: staging
SolutionStackName: 64bit Amazon Linux 2017.03 v2.7.3 running Docker 17.03.1-ce
VersionLabel: !Ref WsServerEBAppVersion
OptionSettings:
- Namespace: 'aws:autoscaling:launchconfiguration'
OptionName: EC2KeyName
Value: !Ref KeyName
- Namespace: 'aws:autoscaling:launchconfiguration'
OptionName: IamInstanceProfile
Value: aws-elasticbeanstalk-ec2-role
- Namespace: 'aws:autoscaling:launchconfiguration'
OptionName: SecurityGroups
Value:
- launch-wizard-1

WsServerEBAppVersion:
Type: 'AWS::ElasticBeanstalk::ApplicationVersion'
Properties:
ApplicationName: !Ref WsServerEBApp

最佳答案

我使用 EnvironmentType 做到了值为 SingleInstance:

WsServerEBEnvironemt:
Type: 'AWS::ElasticBeanstalk::Environment'
Properties:
....
OptionSettings:
....
- Namespace: aws:elasticbeanstalk:environment
OptionName: EnvironmentType
Value: SingleInstance

关于amazon-elastic-beanstalk - 云信息 : Create ElasticBeanstalk without Load Balancer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46001101/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com