'This is when the DeploymentEngine should configure itself to prepare for deployment
:rtype: None'

def configure(self):

    self.bucket_name = get_or_prompt(self.site.config, self.config_bucket_name, self.site.ui.prompt_normalized, 'Enter    the    bucket    name    (e.g.:    www.example.com)')
    self.bucket = self.get_bucket()
    created = False
    if (self.bucket is None):
        if self.site.ui.prompt_yes_no('Bucket    does    not    exist.    Create    it?'):
            self.bucket = self.create_bucket()
            created = True
        else:
            return
    website_endpoint = self.get_website_endpoint()
    self.site.config.set(self.config_bucket_website, website_endpoint)
    self.site.config.write()
    self.credentials_manager.save_credentials()
    if created:
        logger.info('Bucket    %s    was    created    with    website    endpoint    %s', self.bucket_name, website_endpoint)
    logger.info('Bucket    Name:    %s', self.bucket_name)
    logger.info('Bucket    Web    Endpoint:    %s', website_endpoint)
