This allows for variables to be properly resolved instead of appearing as strings as-is. Resource variables can currently be replaced through TaskResourceMapping, but other essential fields like QueueUrl for sqs:sendMessage resources need to be supported. Instead of overloading TaskResourceMapping with custom syntax, allow variable resolution to give users full flexibility to configure however they want.
TaskResourceMapping is still handy, but can consider deprecating it in the future since the functionality is now possible through variables, and there'll be one less thing to maintain.
The example below (and in the README) shows how to reference an arbitrary custom variable.
Purpose
Allow variable resolution in the step functions config, following this approach: https://github.com/serverless-operations/serverless-step-functions/pull/451.
This allows for variables to be properly resolved instead of appearing as strings as-is.
Resource
variables can currently be replaced throughTaskResourceMapping
, but other essential fields likeQueueUrl
forsqs:sendMessage
resources need to be supported. Instead of overloadingTaskResourceMapping
with custom syntax, allow variable resolution to give users full flexibility to configure however they want.TaskResourceMapping
is still handy, but can consider deprecating it in the future since the functionality is now possible through variables, and there'll be one less thing to maintain.The example below (and in the README) shows how to reference an arbitrary custom variable.
Notes