Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
use rolling deploys for beanstalk, instead of the 'all at once' defau…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgubler committed Aug 9, 2019
1 parent 758a1e1 commit e3923bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handel/src/services/beanstalk/index.ts
Expand Up @@ -119,6 +119,11 @@ async function getCompiledBeanstalkTemplate(stackName: string, preDeployContext:
// Configure rolling updates
handlebarsParams.optionSettings.push(getEbConfigurationOption('aws:autoscaling:updatepolicy:rollingupdate', 'RollingUpdateEnabled', true));

// Configure rolling deploys
handlebarsParams.optionSettings.push(getEbConfigurationOption('aws:elasticbeanstalk:command', 'DeploymentPolicy', 'RollingWithAdditionalBatch'));
handlebarsParams.optionSettings.push(getEbConfigurationOption('aws:elasticbeanstalk:command', 'BatchSizeType', 'Percentage'));
handlebarsParams.optionSettings.push(getEbConfigurationOption('aws:elasticbeanstalk:command', 'BatchSize', '25'));

// Configure VPC
handlebarsParams.optionSettings.push(getEbConfigurationOption('aws:ec2:vpc', 'VPCId', accountConfig.vpc));
handlebarsParams.optionSettings.push(getEbConfigurationOption('aws:ec2:vpc', 'Subnets', accountConfig.private_subnets.join(',')));
Expand Down

0 comments on commit e3923bc

Please sign in to comment.