fbpx

Introduction

This tutorial covers configuration updates that require a rolling update. This includes the following changes to infrastructure resources:

Namespace: aws:autoscaling:launchconfiguration Namespace: aws:ec2:vpc
EC2KeyName
IamInstanceProfile
ImageId
MonitoringInterval
SecurityGroups
SSHSourceRestriction
BlockDeviceMappings
RootVolumeType
RootVolumeSize
RootVolumeIOPS
VPCId
Subnets
ELBSubnets
ELBScheme
DBSubnets AssociatePublicIpAddress

 

Once Maintenance is completed and the necessary Elastic Beanstalk configuration changes are made, a blue-green deployment is forced where a graceful replacement of existing instances with new, updated instances (that contain the new configuration change) takes place.

The tutorial covers In-ASG and Independent Beanstalk integration methods in separate steps.

Prerequisites
  • A healthy Beanstalk environment in your AWS account
  • Elastigroup is synced with Beanstalk environment.
  • The most up-to-date Spotinst IAM policy is configured in your AWS account
In-ASG Beanstalk Integration Method
Note: While in Maintenance Mode, the service remains available and your instances are still running.
    1. Open the Elastigroup Management View. Under Configuration Update click Start Maintenance.
    2. Perform the changes to the Beanstalk environment in the AWS Console.
    3. After making the changes, select Roll Updates to initiate a blue/green deployment that gracefully replaces the Elastigroup’s instances with new instances containing the configuration changes. To learn more about deployments/rolling in Elastigroup click here.
Independent Integration Method
    1. Perform the changes to the Beanstalk environment in the AWS Console.
    2. In the Elastigroup Management View, under Actions select Beanstalk.

 

  1. In the pop-up window, click Re-Import Config to import the updated configuration.
  2. Configure the blue/green deployment to be initiated. The blue/green deployment gracefully replaces all the instances in the Elastigroup with new instances containing the configuration changes. For more on deployments/rolls in Elastigroup click here.
  3.  Click Save & Deploy.