Deploy Bold Reports on an ECS Fargate Cluster Using an Application Load Balancer
This section provides instructions on deploying the Bold Reports application on an ECS Fargate cluster using an Application Load Balancer.
Prerequisites:
ECS cluster - https://docs.aws.amazon.com/AmazonECS/latest/userguide/create_cluster.html
EFS - https://docs.aws.amazon.com/efs/latest/ug/gs-step-two-create-efs-resources.html
Ensure all resources are within the same security group and VPC.
Steps to Deploy the Bold Reports application on an ECS Cluster
-
Create the task definition for the Bold Reports application with the following details. Follow this document to learn more about ECS task definitions.
- Requires compatibilities: FARGATE
- Operating system family: Linux
- Task memory (GB): 4 GB
- Task CPU (vCPU): 2 vCPU
- Volumes: Add EFS volume details in the Volumes section.
-
Add container - You can refer to this documentation for Bold Reports docker image details.
-
Image: syncfusion/boldreports
-
Port mappings: 80 and tcp
-
STORAGE AND LOGGING:
- Container path: /application/app_data
-
-
Save the template.
-
Go to the Cluster and create the service by following the below steps:
Navigate to: Amazon Elastic Container Service –> Clusters –> Cluster name –> Services –> Create
Environment:
-
Launch type: Fargate with Latest version
Deployment configuration:
-
Application type is service, and select the task definition created in Step 1.
-
Desired tasks - 1
Networking:
-
Use the same VPC, subnet, and security group as the Cluster, Load balancer, and EFS.
Load balancing:
-
Create a load balancer with the target group in the ECS service by following the instructions in the Load Balancer Creation
Guide.
-
Now, create the service.
-
Once the service is up and running, access the application using the Application Load Balancer DNS.