Book Image

Expert AWS Development

By : Atul Mistry
Book Image

Expert AWS Development

By: Atul Mistry

Overview of this book

Expert AWS Development begins with the installation of the AWS SDK and you will go on to get hands-on experience of creating an application using the AWS Management Console and the AWS Command Line Interface (CLI). Then, you will integrate applications with AWS services such as DynamoDB, Amazon Kinesis, AWS Lambda, Amazon SQS, and Amazon SWF. Following this, you will get well versed with CI/CD workflow and work with four major phases in the release process – Source, Build, Test, and Production. Then, you will learn to apply AWS Developer tools to your Continuous Integration (CI) and Continuous Deployment (CD) workflow. Later, you will learn about user authentication using Amazon Cognito, and also how you can evaluate the best architecture as per your infrastructure costs. You will learn about Amazon EC2 service and will deploy an app using it. You will also deploy a practical real-world example of a CI/CD application with the Serverless Application Framework, which is known as AWS Lambda. Finally, you will learn how to build, develop, and deploy the Application using AWS Developer tools such as AWS CodeCommit, AWS CodeBuild, AWS CodeDeploy, and AWS CodePipeline, as per your project requirements.
Table of Contents (16 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Continuous Integration and Continuous Deployment workflow


In this section, we will understand two things to configure, Load Balancing and Auto Scaling. We will continue with the same example we discussed in Chapter 5, CI/CD in AWS Part 2 – CodeDeploy, CodePipeline, and CodeStar and update the example with Auto Scaling Group. We will stop the instance and see the behavior in the EC2 console, and Auto Scaling Group should automatically launch the instances with a predefined script.

Now, let's see how to create and configure Load Balancing. Load Balancing is divided into two parts – Load Balancers and Target Groups.

As we already discussed, Load Balancers come in three types. You can choose whichever Load Balancer you need:

In this example, if you select Application Load Balancer, then it will navigate to the Configure Load Balancer screen. You can add the required fields, such as Name, and select the specific Availability Zone. You can also add Listeners such as HTTPS:

You will see the following...