Jenkins CloudFormation templates

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

Deploying Jenkins to AWS 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

Launch CloudFormation stack

Want to know more? Follow the full tutorial.

Template 2: Running Jenkins agents in ECS

Jenkins slave agents in aws 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

Launch CloudFormation stack

Want to know more? Follow the full tutorial.

Template 3: Jenkins configuration-as-code agents setup

Jenkins configuration as code with AWS slave agents
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

Launch CloudFormation stack

Want to know more? Follow the full tutorial.

Template 4: Jenkins cross-VPC agent setup

Running Jenkins slave agents in another VPC using VPC endpoints
Run Jenkins agents into another VPC using the power of VPC endpoints

✅ Easily run agents that can access resources in another VPC
✅ Secure cross-VPC setup keeping traffic within the AWS network

Launch CloudFormation stack

More templates coming soon…

question mark neon signage
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 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.

Create CloudFormation stack

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.

Delete CloudFormation stack

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

Scroll to top