Elastic Beanstalk In-Depth

Elastic Beanstalk (EB) - Architecture (18:12)

Alt text Elastic Beanstalk (EB): Overview

what is elastic beanstalk (el)?

Elastic Beanstalk is a Platform as a service (PaaS)

  • Developers provides code

  • EB handles the deployment

    • capacity provisioning
    • load balancing
    • automatic scaling to web application health monitoring,
    • with ongoing fully managed patch and security updates
    • and many other things
      • networking (VPC, subnets)
      • EC2 instance: EBS, CloudWatch, Security Group
      • database
      • deployment strategy…

Alt text Elastic Beanstalk (EB): Platforms

note

EB provides:

  • Managed Platform for many languages:
    • Go, Java,
    • .NET, .NET Code,
    • Node, PHP, Python, Ruby
  • Custom Platform via Docker

Alt text Elastic Beanstalk (EB): Architecture

how to use eb?

When working with EB, you:

  1. Create an EB application
  2. Bundle a deployable code (aka source bundle) as an application version that will be automatically deployed either as One of two type of Environment tier:
    • Web Server environment
    • a Worker environment, that can be deployed with a message queue (SQS)
  3. Manage the environments
  4. Update new application version, and EB will deploy new versions of environments

Alt text Elastic Beanstalk (EB): Blue-Green Deployment

Alt text Elastic Beanstalk (EB): Summary

[DEMO] Elastic Beanstalk (EB) - Application & Environment - PART1 (11:50)

[DEMO] Elastic Beanstalk (EB) - Add additional environment and config options - PART2 (10:53)

Elastic Beanstalk (EB) - Deployment Policies (11:40)

Alt text EB - Deployment Policies

Alt text EB - Deployment Policies: All at once

Alt text EB - Deployment Policies: Rolling

Alt text EB - Deployment Policies: Rolling with additional batch

Alt text EB - Deployment Policies: Immutable

Alt text EB - Deployment Policies: Traffic Splitting

Alt text EB & Blue-Green Deployment

[DEMO] Elastic Beanstalk (EB) - Deployment (8:30)

Elastic Beanstalk (EB) - Environments and RDS (4:34)

Alt text

Alt text

Alt text

Elastic Beanstalk (EB) - Advanced Customization via .ebextensions (4:52)

Alt text

elastic beanstalk is based on cloudformation>

Use can provide additional Cfn configuration via the .config files inside .ebextensions folder in the source bundle.

These config can:

  • modify the EB application environment
  • modify the EC2 instances
  • deploy custom Cfn resources, make advance modification to Cfn resources

See GitHub - awsdocs/elastic-beanstalk-samples

Elastic Beanstalk (EB) - HTTPS (1:51)

Alt text

Elastic Beanstalk (EB) - Cloning (4:44)

Alt text

Elastic Beanstalk (EB) - Docker (9:11)

Alt text

Alt text

Alt text

[DEMO] Elastic Beanstalk (EB) - Section Cleanup (1:40)

Section Quiz - Elastic Beanstalk