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.
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.
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.
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.
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.
Step6: Now configure TCP health checks. App Runner performs a TCP health check at the port that your application is listening to.
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.
Step8: Configure the way your service communicates with other applications, services, and resources. So I am choosing here public access.
Step9: We can add tags also. After doing this click on next.
Step10: Now Review your application configuration and click on create & deploy.
Therefore It will start creating and deploying. You can view the status of deployment on the page.
So It will take a few minutes for its processing. Finally it is successfully deploy as you can see below.
You can view the real time logs from here. What are the events that are happening? You can see it here.
Click on the default domain to view your application up and running.
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!
Wow! Such a nice informative post it was. Thanks for sharing it with us.