NashTech Insights

Table of Contents
AWS App Runner Simple Demo

Continue the previous blog about App Runner: AWS App Runner – Why and Price. Today, we will build a simple Node.js application. After that, I hope we will have the same background when discussing AWS App Runner.

Introduce the AWS App Runner

Deploy containerized web applications and APIs at scale.

This fully managed container application service allows building and running secure web applications at scale without prior container or infrastructure experience. You can have a look at the below outline. After that, we will go step by step to build a simple Node.js website.

Outline of app runner
Outline of app runner

Open the AWS App Runner Console

Go to AWS App Runner Console to create new service
AWS App Runner Console

When we go to the AWS App Runner console, we can click the “Create an App Runner service” button to create a new service. After that, we follow step by step to create a new service.

Step 1: Source and Deployment

Step1: Add GitHub Repository
Step1: Add GitHub Repository

We can choose Container registry or Source code repository at the repository type. In this example, we will choose the Source code repository.

Click the “Add new” button to create a connection to GitHub

Step 1: GitHub create new connection
Step 1: GitHub creates a new connection
Step 1: GitHub creates a new connection - Install Another button
Step 1: GitHub creates a new connection – Install Another button

After clicking the Install Another button, it will require permission to connect to the GitHub app

Allow AWS Connect to GitHub

When you click the green button, we will go to the next page to ask you about the GitHub level you want to Install AWS Connector: Account, Org.

Choose GitHub level to connect to AWS Connector
Choose specific repository
Repository display in Dropdown

Step 2: Configure build

In this step, we have two options:

  • Configure all settings here: This is a manual step; you must set up all configurations yourself.
  • Use a configuration file: Create apprunner.yaml and define all your configurations.

Open Configure Build
Update configuration value
Update configuration value

At step 2, we can configure the manual or create apprunner.yaml in the code folder.

Apprunner Yaml file

Step 3: Configure service

Configure AppRunner service parameters

At this step, we can choose a configuration for the service.

Step 4: Review and create

Review and create


After finishing step 4, we can see the dashboard of the StartAppRunner Service.

View after creating.

Wait some minutes (5min), we will see the result

Finish - Done.

If our code has a problem, the service will automatically roll back. 

Because we chose manual, if we want to deploy again, click the “Deploy” button.

Trần Minh

Trần Minh

I'm a solution architect at NashTech. I live and work with the quote, "Nothing is impossible; Just how to do that!". When facing problems, we can solve them by building them all from scratch or finding existing solutions and making them one. Technically, we don't have right or wrong in the choice. Instead, we choose which solutions or approaches based on input factors. Solving problems and finding reasonable solutions to reach business requirements is my favorite.

Leave a Comment

Your email address will not be published. Required fields are marked *

Suggested Article

%d bloggers like this: