Contents

Elasticbeanstalk-with-EC2-&-shared-Load-balancer

Creating an Elastic Beanstalk Environment: 🏡

A Step-by-Step Guide 🪜

  • Setting up your application on Amazon Elastic Beanstalk is a seamless process that allows for easy deployment and scaling.

    Follow these steps to create your environment:

Step 1: Open Elastic Beanstalk and Create Environment 📭

https://github.com/yahyagulshan/linuxnotes/assets/59036269/00e913d9-a45b-4422-ab97-1ccfbb0b166c

  • select environment tier
  • give the application name
  • give the environment name
  • give the domain name

https://github.com/yahyagulshan/linuxnotes/assets/59036269/b0662e61-2f1f-4eba-9011-4ef074e66237

  • choose platform
  • select platform type
  • select platform branch
  • select platform version
  • select application code

https://github.com/yahyagulshan/linuxnotes/assets/59036269/d82255db-bda7-42a0-acd0-033ed9281b7f

  • choose configuration presents and click on next.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/d9606b16-20bf-4f05-b5b0-dd7a44fd4d44

  • In configuration service access select service role.
  • select existing service role.
  • select EC2 Key pair.
  • select EC2 Instance profile.
  • and click on next.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/83e31d22-fc28-4577-837c-b5f3a0cf9e38

  • select vpc
  • click on public ip address if we need.
  • select instance subnets

https://github.com/yahyagulshan/linuxnotes/assets/59036269/9f18a7be-a540-4f1c-9a10-0a108d83d015

choose database insatnce subnets if we need .then click on next.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/8db1888c-278a-49b1-9a93-3026d3e12e2f

  • choose root volume device
  • select instance metadata service

https://github.com/yahyagulshan/linuxnotes/assets/59036269/ffc465c6-14cf-495c-b875-222e30e8bdb1

  • select security groups for ec2 instance.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/55f7fbf9-733b-4a61-bedb-49caefe29ddf

  • in capacity section select envoirnment type for this exercise select loadbalanced.
  • choose instance quantity min and max.
  • choose fleet composition

https://github.com/yahyagulshan/linuxnotes/assets/59036269/4f6af7ff-25c6-49f6-adf5-c1bef6af6668

  • select instance type

https://github.com/yahyagulshan/linuxnotes/assets/59036269/69133dfc-b93c-47b4-bcfd-60ce63f2adc1

  • select load balancer network settings
  • select public if we need publicly accessible or choose internal.
  • select network for load balancer.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/2ab2bca6-171e-495c-9e3a-9a0083f3b55b

  • select load balancer type which we need.
  • choose dedicated or shared laoadbalancer in this exercise we need shared laoad balancer.
  • select loadbalancer in shared application loadbalancer section.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/ea17f318-97a4-41ce-baa5-8a5f6f792abf

  • in process if we need to add process other than default click on add process and add it there.
  • if we want to add rules in loadbalancer then click on add rule button .
  • if not then leave at is it and click on next.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/7e4a2fe5-031b-4caf-9c07-0066e200a75f

  • in monitoring click on basic.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/9d894628-fc68-45f2-b4ac-35bfd9312899

https://github.com/yahyagulshan/linuxnotes/assets/59036269/c23a549f-00ba-4ef2-9213-22ad5186f846

https://github.com/yahyagulshan/linuxnotes/assets/59036269/676af2d0-3929-4120-84c3-8f89d09949df

in next review all the settings. and click on submit.

https://github.com/yahyagulshan/linuxnotes/assets/59036269/16755218-cf41-4567-96bc-1145486d2c94