AWS Step Functions Pricing | Serverless Microservice Orchestration | Amazon Web Services (original) (raw)

You can estimate an AWS Step Functions Express Workflow’s memory utilization from the size of the state machine definition, the execution (payload) data size, and the use of Map or Parallel states.

Workflow memory utilized = 50 MB + state machine definition size + execution data size x Number of Parallel or Map Steps

If you have a workflow with a 50 KB state machine definition size, 400 map steps with 32 KB of payload per step:

Workflow memory utilized = 50 MB + 50 KB + (32 KB x 400 steps)
Workflow memory utilized = 50 MB + 50 KB + 12,800 KB
Workflow memory utilized = 62.85 MB
Billed memory (in 64 MB chunks) = 64 MB

CloudWatch Metrics contains details on memory consumption under ExpressExecutionMemory and billed memory under ExpressExecutionBilledMemory. You can view metrics such as Executions Started, Execution Duration, Billed Duration and Billed Memory for each workflow in the AWS Step Functions Console under Step Functions > State Machines > State Machine Name in the Monitoring tab.

If you run 100 million workflows each month, and the average duration of the workflows is 10 seconds:

Monthly request charges

The price is $1.00 per million requests
Monthly request charges = 100M requests x 1.00=1.00 = 1.00=100.00

Monthly duration charges

100 million workflows x 10 seconds of duration = 1,000,000,000 seconds
1,000,000,000 x 64 MB (billed memory) /1024 MB = 62,500,000 GB-s
62,500,000 GB-s / 60 / 60 = 17,361.11 GB-hours
0.06000perGB−hourx1,000GB−Hours=0.06000 per GB-hour x 1,000 GB-Hours = 0.06000perGBhourx1,000GBHours=60.00
0.03000perGB−hourx4,000GB−Hours=0.03000 per GB-hour x 4,000 GB-Hours = 0.03000perGBhourx4,000GBHours=120.00

0.01642perGB−hourx12,361.11GB−Hours=0.01642 per GB-hour x 12,361.11 GB-Hours = 0.01642perGBhourx12,361.11GBHours=202.97

Monthly duration charges = 60.00+60.00+60.00+120.00+$202.97 = 382.97

Total monthly charges

Total monthly charges = request charges + duration charges
Total monthly charges = 100.00+100.00 + 100.00+382.97 = $482.97