CDK constructs for Temporal cluster on AWS ECS/Fargate

Hi all! Just want to share this… We are working on CDK constructs to deploy a Temporal cluster on AWS ECS/Fargate. You may check it out at GitHub - Progymedia/temporalio-cluster-cdk: AWS CDK constructs for deployment of a Temporal cluster on ECS Fargate.

This is still preliminary work, but already provides the following features:

  • Setup a Temporal cluster on ECS Fargate
  • Use distinct containers for each Temporal server roles (frontend, history, matching, worker)
  • Specify the size of containers (can be specified specifically for each server role, or as default values)
  • Register frontend containers to a CloudMap namespace
  • By default, create an Aurora serverless (MySQL compatible) data store
  • Possibility of specifying Temporal software version, as well as modifying address of docker images (either to use a less restrictive docker registry, or to use customized build images)
  • Use an EFS file system to store and share Temporal’s dynamic_config.yaml file among all server nodes
  • Automatically creates and upgrade the ‘temporal’ and ‘visibility’ schemas at launch time, if appropriate (without using the auto_setup container)
  • Optionally launch the Temporal web UI

Please drop a line if you are interested in this deployment strategy. Feedback and contributions are welcome!

7 Likes

hello, i tried to revise this repo, with a generalized fork, let me know if you are open to collaboration

Hi there!

Thanks so much for reaching out, and I’m really happy to hear this project has been useful to you!

Just a quick heads-up: I’m no longer with Progymedia, so I don’t have any authority over the official repository at this point. In fact, my former company has since moved to Temporal Cloud, and as a result, the GitHub repo was archived and is no longer actively maintained.

That said, the project is under the MIT license, so forking it is absolutely fine — and probably the best way to proceed if you want to adapt or generalize it further. I’d be glad to help out a bit, for example with discussions or general guidance, but please note that I’m no longer running an ECS/CDK-based Temporal cluster myself, so I won’t be able to make active contributions or test changes hands-on.

Feel free to keep me posted on your fork and progress, and don’t hesitate to reach out here or on Slack if you have questions I can help with!

Best of luck!