0

Comment créer un ElasticBeanstalk environment sans équilibreur de charge? Je n'ai aucune option pour le désactiver dans le aws:autoscaling:launchconfiguration.Cloudformation: Créer ElasticBeanstalk sans Load Balancer

Il est possible de turn off load balancing manually depuis AWS Management Console.

Ce mon modèle de pile 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 

Répondre

1

je l'ai fait en utilisant EnvironmentType valeur SingleInstance:

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