How to integrate game with AWS DynamoDB

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Btoole

I want to collect game data and store it with DynamoDB, but the SDKs for DynamoDB are not compatible with godot. I was wondering if anyone has any experience or advice in integrating it into my game.

:bust_in_silhouette: Reply From: Tilade

I’m just getting started using Godot, but am an AWS user and can help. One of the best ways that works with almost anything is to provision a REST API endpoint. You can do this by using API Gateway to accept POST commands. Configure API Gateway to either directly make requests to DynamoDB or Lambda and write your commands within a Lambda function if you need to do more work than just writing data to a table.

Then follow this tutorial to make the call: https://github.com/nyenye/godot-docs/blob/making_calls_to_rest_api/tutorials/networking/making_calls_to_a_rest_api.rst

REST POST: https://forum.godotengine.org/16310/upload-json-data-to-server-with-httpclient

:bust_in_silhouette: Reply From: christinoleo

I’ve recently published an advanced style tutorial on how to do this at https://youtu.be/Si3Q9vWWWZA

Basically, by using the DynamoDB restful api and a gdnative addon to generate hmac (for authentication) you can connect and call all the DynamoDB stuff directly from godot.

I preferred doing this way to avoid “middle man” software, like a webserver, lambdas or gateways, to then take the full advantage of DynamoDB’s free tier.

The codes of the tutorial are in: