Tile-db AWs API does not work for other regions than aws

The issue is that the Config (cfg) object where you set us-west-1 must be passed to the Ctx constructor:

Context ctx;
needs to be:
Context ctx(cfg)