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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则