简体   繁体   中英

AWS Lambda function to start “Simple Workflow(SWF)” Execution in AWS

Is it possible to start a AWS-SWF workflow from a Lambda function registered in AWS?

I wrote a POC in Java using "Flow Framework" to start a workflow from Lambda, triggered by S3 insertion. But the lambda function, while trying to talk to SWF through REST, is giving a timeout.

Do I need to do any extra configuration for this issue?

Yes it's possible to start a swf workflow from a lambda function. Only thing is that the lambda function should have internet access.

By default lambda functions have internet access if they are not created inside a VPC. If you create it inside a VPC you have to configure internet access via a NAT. Check the "Internet Access for Lambda Functions" section in link below for more details.

http://docs.aws.amazon.com/lambda/latest/dg/vpc.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM