0

Wie kann ich ein ElasticBeanstalk environment ohne Load Balancer erstellen? Ich habe keine Optionen, um es in der aws:autoscaling:launchconfiguration zu deaktivieren.Wolkenbildung: Erstellen Sie ElasticBeanstalk ohne Load Balancer

Es ist möglich, turn off load balancing manually von AWS Management Console.

Das ist mein Cloudformation Stapel Vorlage:

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 

Antwort

1

Ich habe es EnvironmentType Wert als SingleInstance mit:

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