Take your pick from these premium CloudFormation templates. You’ll be up and running with Jenkins in AWS right away!
Template 1: Jenkins master in ECS

Deploy a fault-tolerant Jenkins master setup in AWS Elastic Container Service
✅ Keep Jenkins running with automatic failover during availability zone failure
✅ Use as much storage as you need using AWS Elastic File System (EFS)
✅ Secured and protected using strict security group rules and a strong password

Want to know more? Follow the full tutorial.
Template 2: Running Jenkins agents in ECS


Scale your Jenkins jobs with the power of AWS Elastic Container Service
✅ Run as many jobs as you like using AWS Elastic Container Service
✅ Don’t worry about managing servers with the serverless AWS Fargate
✅ Reduce costs by only running Jenkins agents when you need them





Want to know more? Follow the full tutorial.
Template 3: Jenkins configuration-as-code agents setup


No-hassle Jenkins ECS Cloud configuration using the Jenkins Configuration as Code plugin
✅ Run as many jobs in ECS as you like, without any manual configuration
✅ Recover from disasters easily with an auto-provisioned Jenkins master
✅ Easily update your cloud configuration and track changes using version control





Want to know more? Follow the full tutorial.
More templates coming soon…


Even more Jenkins use cases in AWS
I’m working on some new CloudFormation templates. When they’re ready, you’ll be the first to know!
❓ If you have a particular scenario which isn’t covered here, let me know at tom@tomgregory.com and I’ll see if I can help.
Frequently Asked Questions
1. How do I deploy the CloudFormation templates?
Just click on Launch Stack next to the template you want to deploy, and you’ll be taken into your AWS account. Make sure you’re in the region you want to deploy to, then fill out:
- Parameters: each stack will require a different set of parameters. Read the parameter description for more details.
- Capabilities: the CloudFormation stack needs to create some resources which require extra permissions, such as roles. Just check all the tick-boxes.
Click Create stack then wait for AWS to create all the required resources in the background.


Wait for the stack to reach the CREATE_COMPLETE state. For more details on what to do next, see the relevant linked tutorial page.
2. Will AWS charge me for this?
The resources created by these templates use minimal CPU & memory. Just enough to demonstrate the concepts.
That said, a small charge will be incurred, but not more than a few dollars per day. Make sure to delete the CloudFormation stacks as soon as you’re done.
3. How do I delete the CloudFormation stacks?
Just go to the AWS CloudFormation dashboard, select Stacks, choose a stack, hit Delete, then confirm the deletion.


Make sure to always confirm that the stack has been fully deleted.