AWS Developer Associate - vinhtbkit/bkit-kb GitHub Wiki

Elastic Beanstalk

Overview

  • Deploy code, and AWS takes care of the rest
  • Have an auto scaling group (ASG)
  • May include load balancer or not
  • Backed by AWS Cloud Formation

Deploy policies

  • All in one
  • Rolling
  • Rolling in additional batch
  • Immutable

Beanstalk is considered In-Place deployment since the whole deployment takes place within the existing environment ( from load balancer to ASG)

Environments

  • Web environment
    • Single instance
      • Rollback deployment policies require an ELB, so can not be used with Single instance Web env
    • Load balanced - behind an ELB managed by ASG
  • Worker environment
    • Create an SQS queue, install SQS daemon on EC2s, and ASG scaling policy add or remove instances based on queue size

Configuration

  • .ebextensions folder

Misc

  • When you let EB define DB, it will be deleted when deleting env