Instead of using AWS, I am using its local available DynamoDB database and creating a graph in the Gremlin console.
My PC is using Gremlin-version=3.0.1.incuba
Gremlin-version=3.0.1.incuba
You are attempting to commit your traversal g. You should be attempting to commit your graph like so: graph.commit().
g
graph.commit()
g is the traversal which is initialised as such: g = graph.traversal() and it cannot be committed.
g = graph.traversal()