oneclick-stepfunction-human-approval#401
Conversation
|
Just to add to pointer....
|
|
#402 |
|
Hi @YogeshNain2015 , thanks for your submission. We already have a very similar workflow on the site (https://serverlessland.com/workflows/human-in-the-loop). I suggest that you update the existing one with your enhancements like generating URLs for convenience. |
|
hi @bfreiberg
additionally, i am not using SNS instead using lambda to wait for task token and url encoding it before sending as email. what i am trying to convey is that my SFN workflow is different than the existing one, if i need to change it, then it will be changed entirely. |
Replace the direct SNS waitForTaskToken integration with a Lambda-based approach that URL-encodes the task token and sends clickable approve/reject links via email. This eliminates the need for reviewers to manually copy task tokens and use the AWS CLI. Changes: - Add SendApprovalEmailFunction (Python) that URL-encodes the task token and publishes an email with approve/reject links via SNS - Add HandleApprovalFunction (Python) that decodes the token and calls SendTaskSuccess to resume the workflow - Add API Gateway endpoint to handle the approval callback - Update state machine to use lambda:invoke.waitForTaskToken - Add architecture diagram (SVG) with official AWS icons - Update README and example-workflow.json From #401
|
made changes in https://serverlessland.com/workflows/human-in-the-loop as improvement so closing this one... |

Issue #, if available: Issue: aws-samples/serverless-patterns#2796
as discussed from biswanath creating the issue here:
aws-samples/serverless-patterns#2795
its not duplicate,
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.