ECS Fargate with advanced Cloudformation Templates
top of page
Blue Background

ECS Fargate with advanced Cloudformation Templates


In the ECS Fargate with Pre-built Jenkins CI/CD pipeline manual, we have provided a manual for the first template in which you can build your source code, test, and deploy in ECS Fargate with a database using Jenkins. So all these can be done using our cloud formation template. We have provided the use cases, some sample applications for practice, and a manual for each cloud formation template.


Technical Usage Manual


2. Cloudformation Template for ECS Fargate with Jenkins:


Use Cases:


This is the Infrastructure without the database attached. This Infrastructure is suitable for your own Static Application, in which you build your code to docker image using Jenkins and deploy it in ECS Fargate. We have provided a sample source code for your reference.


User Instructions:

2.1 VPC Configuration:

  • Enter the cluster name and CIDR Ranges for VPC and Subnets

  • Select the Availability Zones for the Subnets

  • Select the SSH Key Pair for cluster


aws fargate
Parameters Section for Cloud Formation Stack

2.2 Container Configuration:

  • Enter the TaskCpu and TaskMemory in MiB with the supported values. To know the supported values refer to ECS Fargate Cpu and Memory

  • Leave the Docker image ID and Container port as default (Note: It will create a cluster with an empty image, while using Jenkins, replace this empty image with the actual ECR image created).

  • Enter the Mail ID to receive the alarm notification.

  • Please set AccessCIDR to specific IP address access or 0.0.0.0/0 to allow all IP addresses.


2.3 After the stack is created successfully, go to the outputs of the stack and copy the public ip and paste it into the browser with 8080. So now it opens the Jenkins login page.

username: admin

password: execute the following command cat /var/lib/jenkins/admin_password.txt in Jenkins Instance.


Note:- Please refer to our manual for Jenkins configuration.

2.4 After the Jenkins configuration, execute the pipeline.


Jenkins_ECS_Fargate_Pipeline_For_CodeTesting_with_OWASP+SonarQube


2.5 Enter the Essential Parameters of Github Url for the source code, AWS Account ID, Mail ID, name of the Dockerfile and Endpoint Url which is in cloudformation outputs (Eg: http://<Endpoint_URL>/ ).


2.6 Check the other parameters which is in default and change it if needed (Note: Check the stack name in Jenkins pipeline is same as stackname in cloudformation stack)


2.7 Once the Pipeline is completed, allow the target application to be deployed successfully and check it by using the same Endpoint URL cloudformation stack.



cloudformation stack
Sample Application for Cloudformation

Insights & Support:

  • For further details about Jenkins and its uses, refer to the Jenkins website

  • Yobitel will do our best to respond to your questions within the next 24 hours in business days. For any technical support or query, you can drop a mail to support@yobitel.com.

  • Check our other Containerized Cloud-Native application stacks as EKS, ECS, Cloud Formation, and AMI - Amazon Machine Images in AWS Marketplace.

Featured Posts
Follow Us
  • LinkedIn
  • GitHub
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
Recent Posts
bottom of page