Elastic Beanstalk Flashcards
(15 cards)
What is the purpose of Elastic Beanstalk?
Deploys all of the standard components that are required for a soluton (EC2, ASG, ELB, RDS, etc)
Compare how Web Server Tier vs Worker Tier handles incoming tasks.
Web servier tier uses an ELB to route trafic within an ASG.
Worker tier uses an SQS queue where EC2 instances within an ASG pull messages from the queue.
What are the two deployment modes for Elastic Beanstalk and what are their use cases?
Single instance (great for dev)
High availability with load balancers (great for prod)
What is the fastest deployment option for Elastic Beanstalk?
All at once (deploy all in one go)
What Elastic Beanstalk deployment option would you choose if you’re alright with reduced capacity during deployments but dont want downtime?
Rolling Release
What Elastic Beanstalk deployment option would you choose if dont want reduced capacity during deployments or downtime? What is 2 things to consider?
Rolling Release with additional batches.
- Additional Cost
- Long deployments if lots of nodes
Describe the Immutable Elastic Beanstalk deployment option
Zero downtime by creating a new temporary ASG m deploying new code, merging into existing ASG, and terminating old nodes.
Describe the Blue / Green deployment strategy
Create a new environment “Stage” and deploy code there. Test environment useing Route 53 with weighted policies. Then set new url via EBS.
How many versions can EBS store at once and how can you configure automated removal of these versions based on space or time?
Lifecycle Policies
What directory do you store Elastic Beanstalk configuration?
.ebextensions
What service does Elastic Beanstalk use to provision AWS services?
CloudFormation
If you want to create an identical Elastic Beanstalk environment from an existing environment, what feature could you use?
Beanstalk Cloning
After creating an EBS environment, what are you unable to change?
The ELB type
How would you perform an EBS migration?
Deploy both environments and then use a Route 53 CNAME record
In production, what is recommended in terms of EBS and your database deployment?
Create RDS seperately and provide EB with connection string. This prevents the RDS lifecycle from being tied to the Beanstalk environment.