Currently the module for code engine build supports passing in region but from the main module the region is not being sent to the module which means that when called from the root module the build will always be created in us-south (default region).
Also when region is passed the module should automatically handled the output image url by parsion cr-region which currently supported in Code Engine DA only and not in the root module