Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
559 views
in Technique[技术] by (71.8m points)

ios - It it possible to call AWS-Lambda function from Swift-App with Amplify

I've created an iOS-App where I am using AWS-Amplify with GraphQL-Api which works just perfect. But as Amplify offers Lambda functions, I wanted to extend my App with these.

I have never used AWS Lambda functions before. In an other project I am using Firebase Cloud Functions which I integrated with Https-Callable functions in my iOS App.

Actually I want to do the same with AWS-Lambda as I want to send some data that gets processed in a lambda function. I've tried a few solutions but none of them worked as I am using Amplify. I also couldn't find any documentation about that

Is there a possibility to call lambda functions just like the Https-Callable functions with an iOS Amplify App?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you want to call lambda directly than you need to do that with sdk, but for client app it's not something you want to do. You need a service in the middle, if you use GraphQl go with AppSync, or ApiGateway for REST.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...