AWS documents three ways to stop paying Lambda to sit and wait on an agent
AWS Machine Learning Blog·medium signal
A new AWS post lays out three async patterns for invoking Bedrock AgentCore agents from Step Functions: a task-token callback where a Lambda dispatcher starts the agent and returns immediately, a direct SDK service integration with no Lambda at all, and a Lambda durable function using context.waitForCallback from the durable-execution SDK. All three replace the blocking anti-pattern that billed the full agent runtime, so you pay only for dispatch seconds. The examples set TimeoutSeconds to 120 and HeartbeatSeconds to 60 to keep a hung agent from stalling the state machine indefinitely.