I’ve not actually used the aws-sdk in TS/JS - but from the log lines it looks like there are incompatibilities between our JavaScript virtual machine and what’s needed in the AWS SDK. I’d recommend using the SDK via Go as what @linjoe mentioned.
Only thing different is that I’d not use the env-var/ or .aws/credentials
way to instantiate the AWS SDK - instead pass the access key/secret as a Nakama Runtime Environment and set up the AWS Client via code:
sess, err := session.NewSession(&aws.Config{
Region: aws.String("us-west-2"),
Credentials: credentials.NewStaticCredentials("AKID", "SECRET_KEY", "TOKEN"),
})