TABLE OF CONTENTS1. Introduction 2. Features3. High-Level Architecture Diagram 4. Simple steps for creating an App Runner Service6. View logs 7. Benefits8. Use Cases8. Conclusion9. CloudThat10. CloudThat10.
Introduction
AWS has recently launched App Runner, a new service. This fully managed containerized service allows you to build, deploy, run, and manage web applications, microservices and APIs in minutes using the source code or Container Image.
AWS manages the underlying infrastructure, resources. AWS adheres to best security practices by providing an automatic integration and delivery pipeline with fully-managed operations, high performance and scalability, as well as security. AWS App Run is currently available in five regions: US East, N. Virginia, US East (Ohio), US West(Oregon), Europe [Ireland], Asia Pacific (Tokyo).
AWS App Runner offers per-second billing. You will receive a public endpoint with a TLS certificate and a verified TLS certificate in a matter of minutes. App Runner can use existing containers or the integrated Container Build Service to deploy applications directly from the code repository.
This blog contains more information about AWS containers.
AWS App Runner works with AWS COPILOT to containerize the application, and automate other services such as Amazon DynamoDB.
Features
Automated deployments
Load Balancing
Autoscaling
Secure by Design
Logs and metrics
High-Level Architecture Diagram:
Image Source: https://docs.aws.amazon.com/
Simple steps for creating an App Runner Service:
1. Choose the Source Connection
Two options are available for source: AWS Container Register or GitHub Repository.
Select Source code repository from the source and deployment page and click on Add New to connect your GitHub repository to AWS
When prompted, enter your GitHub credentials and choose the repository or branch name
2. Configuration settings:
Select Automatic as the deployment trigger in Deployment Settings
3. Configure Runtime and Build:
You can either use a configuration file called yaml in the Configure build page or manually specify the parameters.
Here is what I am indicating manually:
4. Configure Service
If the environment variables are to be used in the application, please give us the service name, CPU and memory.
Autoscaling Configuration allows us to choose how many instances are required based upon the requests that come in to the application. As of now, I am choosing default settings
I have left the default health check settings, where AppRunner performs health checks on TCP ports.
You can create an IAM role to allow specific permissions to use the application. You can also choose from an AWS managed encryption key, or a custom encryption key.
Next, review all configurations and click on Create and deploy
The creation process takes a few minutes. You can then find the URL of your application in the console. To verify that the application is accessible, you can also check the URL in your web browser.
View logs of the service:
You will be able see the logs below in the Service dashboard
Event log: Displays the most recent events and the lifecycle for the App Runner Service
Deployment logs : Displays the log stream of each deployment for the service
App logs: Displays the output from the web application that was deployed in AppRunner
Benefits:
It’s easy to use
Scales for traffic
Time saved
Use Cases
Frontend and Backend web apps
Microservices and APIs
Rapid production deployments
Conclusion
AWS App Runner allows developers to deploy the application quickly and efficiently without having to interact with them in infrastructure and resource selection. This provides better security, monitoring, and high availability.
App Runner makes it easy to deploy applications without having to worry about security or configuring servers.