New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Step Functions aws-sdk:sfn:sendTaskSuccess returning unknown service 'sfn' #10622
Comments
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide. |
@athillairajah Thank you for taking the time to compile this thorough report. I was able to replicate the behaviour in instances where the sendTaskSuccess call resulted in a failure. We recently merged some changes that aim to address this issue. These changes are scheduled to be included in the next nightly release too. I would be grateful if you could test the new build at your earliest convenience and provide feedback on whether it resolves the problem you encountered. Thank you once again for bringing this issue forward. |
Hello 👋! It looks like this issue hasn’t been active in longer than two weeks. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Is there an existing issue for this?
Current Behavior
I am executing a state machine that calls a child state machine and uses the built in Send Task Success to call back the parent state machine upon the success of the child state machine.
The parent step function has a step to start the child step function execution and wait for the task token that is defined:
and the child step function has a step to send the task token back to the parent upon success:
When these step functions are run, I get the following error
A similar issue was reported here #9872 but I don't believe "When using aws-sdk:sfn:startExecution the returned error is incorrect. sfn is a valid service name when using aws-sdk on LocalStack Step Functions." was ever addressed in the solution. I am guessing there is some sort of internal transformation missing that would transform "sfn" to "stepfunctions" which is required by some internal library (boto3?)
Expected Behavior
The resource definition "arn:aws:states:::aws-sdk:sfn:sendTaskSuccess" is valid and should work within LocalStack without causing an unknown service error.
On the previous similar issue is says: sfn should appear in the list of valid service names for aws-sdk on Step Functions. I believe there may be some sort of internal transformation missing to get direct aws sfn internal sdk calls to work.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
waitForTaskToken
task step that starts an execution of the child state machine. The child state machine should havesendTaskSuccess
task step to call back the parent step function.UnknownServiceError
come up for 'sfn' from the send task success stepEnvironment
Anything else?
No response
The text was updated successfully, but these errors were encountered: