2016-12-15 2 views
-1

J'ai donc une application Java avec le fichier Procfile/Buildfile approprié. J'ai créé eb create dans notre environnement scratch Elastic Beanstalk mais je dois suivre avec un changement de configuration manuel pour en faire un type d'instance unique par rapport à une charge équilibrée.Création d'une application Elastic Beanstalk d'instance unique avec eb-cli

Comment utiliser l'eb-cli où eb create $ENVIRONMENT_NAME génère un environnement d'instance unique?

Il y a un .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 

Répondre

1

j'ai compris à propos .ebextensions.

{ 
    "option_settings" : [ 
    { 
     "namespace" : "aws:elasticbeanstalk:application", 
     "option_name" : "Application Healthcheck URL", 
     "value" : "/" 
    }, 
    { 
     "namespace" : "aws:autoscaling:asg", 
     "option_name" : "MinSize", 
     "value" : "1" 
    }, 
    { 
     "namespace" : "aws:autoscaling:asg", 
     "option_name" : "MaxSize", 
     "value" : "1" 
    }, 
    { 
     "namespace" : "aws:autoscaling:asg", 
     "option_name" : "Custom Availability Zones", 
     "value" : "us-east-1a" 
    }, 
    { 
     "namespace" : "aws:elasticbeanstalk:environment", 
     "option_name" : "EnvironmentType", 
     "value" : "SingleInstance" 
    }, 
    } 
}