How to invoke a lambda function from a real time gamelift server

0

I have created a lambda function and a real time gamelift server. I want to invoke the lambda function using my real time gamelift server script. Is there any way to achieve that? Thank you.

已提問 2 年前檢視次數 216 次
1 個回答
1
已接受的答案

You should be able to use the AWS SDK from your script to interact with other AWS services. For this you'd need to additionally set up an IAM role with appropriate permissions to interact with Lambda (or other AWS services) and assign this role to your fleet. Any game server running on this fleet can then assume the role and interact with required services.

For more information, please refer: https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html

Thanks!

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南