AWS App Runner: A Guide for deploying Web Applications

February 17, 2022 | Comments(0) |
TABLE OF CONTENT
1. Introduction
2. Features
3. High-Level Architecture Diagram
4. Simple steps for creating an App Runner Service
6. View Logs of the Service
7. Benefits
8. Use Cases
8. Conclusion
9. About CloudThat
10. Frequently Asked Questions

 

Introduction

AWS recently launched a new service called App Runner. This fully managed containerized application service helps build, deploy, and run web applications, microservices, and APIs within minutes from the source code or using Container Image.

AWS manages the underlying infrastructure and resources by adhering to best security practices by providing the automatic integration and delivery pipeline with fully managed operations, high performance, scalability, and security. Currently, AWS App Runner is supported in five regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (Ireland), and Asia Pacific (Tokyo).

AWS App Runner provides per-second billing and will get a public endpoint with a verified TLS certificate with minimal steps. App Runner can use our existing containers or the integrated container build service to deploy applications directly from the code repository.

Read more about AWS containers in this blog.

AWS App Runner also works with AWS Copilot to containerize the application and automate other services like Amazon DynamoDB.

Features

  • Automatic deployments
  • Load Balancing
  • Autoscaling
  • Secure by Design
  • Logs and metrics

High-Level Architecture Diagram:

AWS App Runner

Image Source: https://docs.aws.amazon.com/

Simple steps for creating an App Runner Service:

AWS App Runner

1. Choose the Source Connection:

There are two options available for source: AWS Container Registry or GitHub Repository.

  • From the source and deployment page, select Source code repository and click on Add new for connecting your GitHub repository with AWS
    AWS App Runner
  • Enter your GitHub credentials when prompted and choose the repository and branch name

2. Deployment Settings:

  • In Deployment Settings, select Automatic as the deployment trigger

3. Configure Build and Runtime:

  • In the Configure build the page, you can use a configuration file named yaml or specify the parameters manually
  • Here I am specifying manually as below:
    AWS App Runner

4. Configure Service:

  • In Configure service page, give the service name, CPU, and memory required for the application, and we can configure environment variables if to be used in the application.
    AWS App runner
  • In Autoscaling Configuration, we can choose the number of instances required based on the requests coming to the application. I am selecting default settings as of now
    AWS App runner
  • I am leaving the health check settings as default, where App Runner performs Health checks on TCP ports of the application
    AWS App Runner
  • You can create an IAM service role for specific permissions to work with the application and can choose an AWS managed encryption key or custom encryption key
    AWS App Runner
  • On the next page, review all the configurations and click on Create & deploy
  • The creation takes a couple of minutes, and after that, you will be able to find the URL of the application in the console and check the URL in the web browser to see whether the application is accessible
    AWS App Runner
    AWS app runner

View Logs of the Service:

In the Service dashboard, you will be able to see below logs:

  • Event log: Displays the latest events and the lifecycle of the App Runner Service
  • Deployment logs: Displays the log stream for each of the deployments for the service
  • Application logs: Displays the output of the web application deployed in App Runner
    AWS App Runner

Benefits:

  • Easy to Use
  • Scales with traffic
  • Saves time

Use Cases

  • Frontend and Backend web applications
  • Microservices and APIs
  • Rapid production deployments

Conclusion

AWS App Runner helps developers deploy the application in minimal steps without intervening with the developer in infrastructure and resource selection, providing better security, monitoring, and high application availability.

One can make the best use of App Runner to deploy applications without worrying about configuring servers, security, and scalability issues. We have learned how to deploy a simple web application right from source code. To know about newly launched AWS services in 2021, here is a blog on AWS re:Invent 2021 highlights. 

About CloudThat

As a pioneer in the Cloud consulting realm, CloudThat is AWS (Amazon Web Services) Advanced Consulting Partner, AWS authorized Training Partner, Microsoft Gold Partner, and Winner of the Microsoft Asia Superstar Campaign for India: 2021. We are on a mission to build a robust cloud computing ecosystem by disseminating knowledge on technological intricacies within the cloud space. Our blogs, webinars, case studies, and white papers enable all the stakeholders in the cloud computing sphere to advance in their businesses.

To get started, go through our Expert Advisory page and Managed Services Package that is CloudThats offerings. Then, you can quickly get in touch with our highly accomplished team of experts to carry out your migration needs. Feel free to drop a comment or any queries that you have about AWS App Runner, containers, or any other AWS services, and we will get back to you quickly.

10. Frequently Asked Questions

  • What is app Runner in AWS?

AWS app Runner is the darling of developers who wish to deploy containerized web applications and Application Program Interface (APIs). Basically, it is a fully managed service that demands no prior infrastructure experience. AWS App runner eases the developers from the stress of worrying about servers or scaling and lets them to focus on application development tasks.

  • When was AWS app Runner released?

 AWS app Runner’s general availability was made on May 18, 2021.
  • How do I use Apprunner?

The following source from AWS provides a detailed step-by-step approach to executing AWS app Runner.

 


Leave a Reply