def _configure_region()

in src/setup.py [0:0]


    def _configure_region(self):
        try:
            region = self.metadata_reader.get_region()
            if self.non_interactive:
                self.config.region = region
            else:
                choice = Prompt("\nChoose AWS region for published metrics:", ["Automatic [" + region + "]", "Custom"],
                                default="1").run()
                if choice == "2":
                    self.config.region = self._get_region()
        except MetadataRequestException as e:
            print(Color.yellow("\nAWS region could not be automatically detected. Cause:" + str(e)))
            self.config.region = self._get_region()