anchor.diff:  access_key_id = product_hash['access_key_id']
   secret_access_key = product_hash['secret_access_key']
   bucket_name = "id-#{uuid[0..9]}"
  -host = $evm.root['dialog_referer']
  +endpoint = $evm.root['dialog_referer']
   headers = [$evm.root['dialog_email'], $evm.root['dialog_token']]
   
   S3 = AWS::S3.new(
  
positive.code: require 'uri/http'
  require 'json'
  
  def send_order_status(referer, headers, status, order_id, information, message = '')
    path = "/order_items/#{order_id}/provision_update"
    host = URI.parse(referer).host
    url = "http://#{host}#{path}"
    uri = URI.parse(url)
  
    information = information.merge('provision_status' => status.downcase)
    $evm.log('info', "send_order_status: Information: #{information}")
  
negative.code:     S3.buckets.create(bucket_name)
    else
      $evm.log('error', 'CreateS3: Bucket name already exists.')
      send_order_status(endpoint, headers, 'CRITICAL', info, 'Bucket already exists.')
      exit
    end
  rescue AWS::S3::Errors::InvalidClientTokenId => e
    $evm.log('error', "CreateS3: Invalid client token exception caught: #{e.message}.")
    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
    exit
  rescue AWS::S3::Errors::InvalidParameterValue => e
    $evm.log('error', "CreateS3: Invalid parameter exception caught: #{e.message}")
    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
    exit
  rescue AWS::S3::Errors => e
    $evm.log('error', "Create S3: AWS Exception caught: #{e.message}")
    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
    exit
  rescue StandardError => e
    $evm.log('error', "CreateS3: General exception caught: #{e.message}")
    $evm.log('error', "CreateS3: General exception back trace: #{e.backtrace}")
    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
    exit
  end
  
  