'Setup the cloud resource before delegation and register a cleanup callback.'

def setup(self):

    super(AwsCloudProvider, self).setup()
    aws_config_path = os.path.expanduser('~/.aws')
    if (os.path.exists(aws_config_path) and (not self.args.docker) and (not self.args.remote)):
        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()
