Elastic Beanstalk Flashcards

1
Q

Elastic Beanstalk

A
  • Uses all components such as EC2, ASG, ELB, RDS
  • Managed service with instance configuration
  • deployment strategy is configurable but performed by Elastic Beanstalk
  • the developer is responsible for the only the code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Elastic Beanstalk

3 Architecture Model

A
  • single instance deployment; good for development
  • LB + ASG great for production or pre-production ; web applications
  • ASG only; great for non-web apps in production (workers)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Elastic Beanstalk

Deployment modes for Updates

A
  • All-at-once
  • Rolling
  • Rolling with additional Batch
  • Immutable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Elastic Beanstalk

Deployment Mode: All-at-Once

A

‣ Deploy the new to all instances all at once
‣ Fastest, but instances aren’t available to serve traffic
‣ No additional costs
‣ Yes Downtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Elastic Beanstalk

Deployment Mode: Rolling

A
‣ Deploy new version in batches
‣ Application is running below capacity 
‣ Update a few instances at a time (bucket), and then move onto the next bucket once the first bucket is healthy
‣ No additional costs
‣ Long deployments 
‣ NO downtime
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Elastic Beanstalk

Rolling with additional Batch

A

‣ Deploy new version in batches but first launch new batch of instances
‣ Like rolling but spines up new instances to move the batch (so that the old application is still available)
‣ Application is running at capacity
‣ Application is running both version simultaneously
‣ Additional batch is removed at the end of the deployment
‣ Longer deployment
‣ Good for production
‣ NO downtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Elastic Beanstalk

Deployment Mode: Immutable

A
‣ Deploy new version to a fresh group
‣ Spins up new instances in a new ASG, deploys version to these instances and then swaps all the instances when everything is healthy
‣ Zero downtime 
‣ High cost, double the capacity 
‣ Longest deployment 
‣ Quick rollback in case of failures; just terminate the new ASG
‣ Great for production  
‣ NO downtime
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Beanstalk Lifecycle Policy

A
  • 1000 application version max
  • if you don’t remove old ones new ones can’t be deployed
  • to phase out old application version
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Elastic Beanstalk Extensions

A
  • files must be in the .ebextensions/ directory in the root of the source code
  • YAML / JSON format
  • .config extensions
  • able to modify some default extensions with option_settings
  • resources managed by .ebextensions get deleted if the environment gets deleted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Beanstalk & CloudFormation

A
  • under the hood Elastic Beanstalk uses CloudFormation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Elastic Beanstalk Cloning

A
  • clone an environment with the same exact configuration
  • all resources and configurations are preserved
    • LB type and config
    • RDS DB type
    • Environment Variables
  • after cloning you can change the settings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly