def METHOD_NAME(self) -> None:
    """Setup the cloud resource before delegation and register a cleanup callback."""
    super().METHOD_NAME()
    aws_config_path = os.path.expanduser('~/.aws')
    if os.path.exists(aws_config_path) and isinstance(self.args.controller, OriginConfig):
        raise ApplicationError('Rename "%s" or use the --docker or --remote option to isolate tests.' % aws_config_path)
    if not self._use_static_config():
        self._setup_dynamic()