Create Target Group

Configure Target Group Frontend

In the search bar:

  • Type Target Groups
  • Select Target Groups (EC2 feature)

7.1/1

On the Target Group screen, click Create target group

7.1/2

In the Basic configuration section, select IP Address.

7.1/3

Enter the following information:

  • Name: FCAJ-Lab-fe-tg
  • Protocol : Port: HTTP : 80
  • VPC: select the VPC that we created earlier
  • Protocol version: HTTP1

7.1/4

In the Health check section, we will add a Health check path as /health and click Next to continue

7.1/5

In this section, we will keep the default configurations

7.1/6

Click Create target group to create the target group

7.1/7

7.1/8

We have successfully created the target group for the frontend service.

Configure Target Group Backend

Similarly, we will create a target group for the backend service

In the search bar:

  • Type Target Groups
  • Select Target Groups (EC2 feature)

7.1/9

On the Target Group screen, click Create target group

7.1/9

In the Basic configuration section, select IP Address.

7.1/10

Enter the following information:

  • Name: FCAJ-Lab-be-tg
  • Protocol : Port: HTTP : 3000
  • VPC: select the VPC that we created earlier
  • Protocol version: HTTP1

7.1/11

In the Health check section, we will add a Health check path as / and click Next to continue

7.1/12

In this section, we will keep the default configurations

7.1/13

Click Create target group to create the target group

7.1/14

7.1/15

We have successfully created the target group for the backend service.