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)
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)