How to deploy an app using AWS App Runner

Reading Time: 4 minutes

Hello Readers in this blog we will see how to deploy an app using AWS App Runner. We will also see What is App Runner? Its benefits and how to use it. So, It’s a recently launched new service by AWS which is a fully managed service. By using it with a few clicks we can deploy our containerised web applications. Deployment  can be done by using source code as well as by using container images. 

Features of App Runner:

  • Automatic Deployment is done by App Runner if you update your container image.
  • App Runner provides auto scaling according to traffic reached to the application.
  • We can also fetch logs of containerized applications. AWS Cloudwatch is already integrated with AWS App runner.
  • It supports automatic load balancing.

Let’s start with a demo!

Step1: Open App Runner in your AWS Console. Click on create an app runner service button. 

App Runner

Step2: Secondly Select source now. For this you have two options. You can choose the source code repository or container registry in which your image is pushed. It can be private or public. Therefore I am choosing a public ECR. 

source

Step3: Now Choose deployment settings whether you want it manual or automatic. For the public amazon ECR automatic deployment option is not available. I will choose the manual here. 

deployment settings

Click on Next.

Step4: Select service settings. Give a service name as per your choice. Select CPU & RAM according to your need. Environment variable is optional here. So Select the port in which your service is running. You can also add additional configurations which contain start commands.The application’s container runs this command on launch. 

service settings

Step5: Configure automatic scaling behavior. It provides two options. They are default configurations and custom configurations. Default configurations are define by the app runner itself. And if you want to define your own configuration according to the need of your application then choose custom configuration.

auto scaling

Step6: Now configure TCP health checks. App Runner performs a TCP health check at the port that your application is listening to. 

health check

Step7: Select the options for security. Specify an instance role and an AWS KMS encryption key. If your application needs to interact with other AWS services then select the role for this. I am choosing the default here. 

security

Step8: Configure the way your service communicates with other applications, services, and resources. So I am choosing here public access. 

networking

Step9: We can add tags also. After doing this click on next.

tags

Step10: Now Review your application configuration and click on create & deploy. 

create & deploy

Therefore It will start creating and deploying. You can view the status of deployment on the page.

deployment

So It will take a few minutes for its processing. Finally it is successfully deploy as you can see below.

service

You can view the real time logs from here. What are the events that are happening? You can see it here.

logs

Click on the default domain to view your application up and running. 

app

Hence We are successfully done now! So This is how you can use a fully managed AWS app runner very easily for your application.

Conclusion:

Thank you for sticking to the end. So In this blog we came to know all about AWS App Runner. We have seen how easily we can deploy our application by using containerized images. If you like this blog, please do show your appreciation by giving thumbs ups and share this blog and give me suggestions on how I can improve my future posts to suit your needs.

HAPPY LEARNING!

Written by 

Naincy Kumari is a DevOps Consultant at Knoldus Inc. She is always ready to learn new technologies and tools. She loves painting and dancing.

1 thought on “How to deploy an app using AWS App Runner6 min read

Comments are closed.