Home
Workflow Engine

Deploy Temporal Workflow Engine on AWS in 5 Minutes

Temporal is the open-source workflow engine that makes building reliable distributed applications simple. With durable execution, automatic retries, and built-in observability, you can write complex workflows as simple code. No more state machines or message queues.

8 min read FlowOps Consulting

What's Included

  • Temporal Server with PostgreSQL
  • Temporal Web UI for monitoring
  • Admin tools CLI included
  • Default namespace configured
  • systemd service management
  • Separate data volume
  • SDK examples included

Step-by-Step Guide

1

Launch the AMI

Find "Temporal FlowOps" on AWS Marketplace and launch.

# Recommended instance types: # m5.large (8GB) - Development # m5.xlarge (16GB) - Production # m5.2xlarge (32GB) - High throughput
2

Access the Web UI

Monitor workflows, namespaces, and workers.

ssh -i your-key.pem ubuntu@your-instance-ip sudo cat /opt/flowops/credentials.txt # Temporal Web UI: http://your-instance-ip:8080 # Temporal Server gRPC: your-instance-ip:7233
3

Write a Workflow (Python)

Create durable workflows with the Temporal Python SDK.

# pip install temporalio from temporalio import workflow, activity from temporalio.client import Client from temporalio.worker import Worker from datetime import timedelta @activity.defn async def process_payment(order_id: str, amount: float) -> str: # This activity can fail and retry automatically print(f"Processing payment for order {order_id}: ${amount}") # Simulate payment processing return f"Payment confirmed for {order_id}" @activity.defn async def send_confirmation(order_id: str, email: str) -> None: print(f"Sending confirmation for {order_id} to {email}") @workflow.defn class OrderWorkflow: @workflow.run async def run(self, order_id: str, amount: float, email: str) -> str: # This workflow is durable - survives crashes, restarts payment_result = await workflow.execute_activity( process_payment, args=[order_id, amount], start_to_close_timeout=timedelta(seconds=30), ) await workflow.execute_activity( send_confirmation, args=[order_id, email], start_to_close_timeout=timedelta(seconds=10), ) return f"Order {order_id} completed: {payment_result}"
4

Run Worker and Execute

Start a worker and execute your workflow.

import asyncio from temporalio.client import Client from temporalio.worker import Worker async def main(): # Connect to Temporal server client = await Client.connect("your-instance-ip:7233") # Run worker worker = Worker( client, task_queue="order-tasks", workflows=[OrderWorkflow], activities=[process_payment, send_confirmation], ) # Start worker in background, then execute workflow async with worker: result = await client.execute_workflow( OrderWorkflow.run, args=["ORDER-123", 99.99, "customer@example.com"], id="order-ORDER-123", task_queue="order-tasks", ) print(f"Workflow result: {result}") asyncio.run(main())

Comparison

FeatureTemporalStep FunctionsAirflow
Code-based workflowsYesJSON/YAMLYes
Automatic retriesBuilt-inBuilt-inManual
Long-running workflowsYearsLimitedNot designed
VersioningBuilt-inManualManual
Open SourceYesNoYes

Use Cases

  • Order processing systems
  • Payment orchestration
  • User onboarding flows
  • CI/CD pipelines
  • Data processing workflows
  • Subscription management

Pricing

Our AMIs are available on AWS Marketplace with simple hourly pricing:

Need Help?

Our UK-based support team is here to help you get the most out of your deployment. Email us at support@flowopsconsulting.co.uk for any questions.

Ready to Get Started?

Deploy in 5 minutes on AWS Marketplace

View on AWS Marketplace

Comments