AWS Elastic Beanstalk
How would you perform a change to your ELB type in your Elastic Beanstalk Environment?
After an Elastic Beanstalk Environment the type of ELB cannot be changed and you must perform a Migration. 1. Create a new environment with the same config except for the ELB. 2. Deploy your application onto the new environment. 3. Shift the traffic to the new environment by doing a CNAME swap
Elastic Beanstalk Deployment that stops all instances, makes updates, and then restarts. fastest deployment option
All at once
Elastic Beanstalk Deployment that allows for canary testing. A temp ASG is created and a certain percentage of traffic is sent to that temp ASG. Temp ASG instances are migrated over to the main ASG.
Traffic Splitting
Used to direct a small percentage of traffic to a version so you can test and fall back if there're any issues.
Traffic Splitting
When do you use a Custom Platform with Beanstalk?
When the application is incompatible with Beanstalk and doesnt use Docker Built using the Packer Software
Used to schedule tasks with Elastic Beanstalk
cron.yaml file
The name of the configuration files for elastic beanstalk
.ebextensions
Elastic Beanstalk can store up to how many versions of your applications?
1000 application versions
Elastic Beanstalk uses what service to deploy/configure its applications
Cloud Formation
How can you configure additional resources to our Beanstalk environment.
Create an eleasticache.config file in the .ebextensions folder to add the configuration files
Elastic Beanstalk feature that enables you to do a copy of an entire environment. For example copy a Prod to create a new Test environment.
Elastic Beanstalk Cloning
Deployment mode where a full set of new instances running the new version of the application in a separate Auto Scaling Group is launched. To roll back quickly, this mode terminates the ASG holding the new application version, while the current one is untouched and already running at full capacity.
Immutable
Elastic Beanstalk Deployment that creates instances in new ASG. The instances are moved from the temporary ASG into the regular ASG. The older version instances are then removed from the ASG.
Immutable
Used to set the amount of versions based upon the age of the version or the amount of versions stored
Lifecycle Policy
Deployment mode which allows the continuously release of new features without application downtime and without incurring extra costs. A temporary decrease of the number of running instances occurs.
Rolling
Elastic Beanstalk Deployment that stops certain capacity and does the updates. Application is running below capacity and running both versions at the same time.
Rolling
Deployment mode which maintains full capacity to serve users
Rolling with Additional Batches
Elastic Beanstalk Deployment that creates additional instances with updates. removes instances and updates. keeps application always at capacity by creating additional instances.
Rolling with Additional Batches
Elastic Beanstalk mode best for when for development and saving costs
Single Instance Mode
Used to swap the environment URL (CNAME swap) to replace a prod with the current version of test.
Swap Environment URL