anchor.diff:        )
       rescue AWS::RDS::Errors::InvalidDBInstanceState => e
         $evm.log('error', "RDSRetire: Invalid Instance state: #{e.message}")
  -      send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
  +      send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
         exit
       rescue AWS::RDS::Errors => e
         $evm.log('error', "RDSRetire: Exception caught when deleting instance: #{e.message}")
  -      send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
  +      send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
         exit
       end
     elsif final_snapshot == 1
  
positive.code:       )
      rescue AWS::RDS::Errors::InvalidDBInstanceState => e
        $evm.log('error', "RDSRetire: Invalid Instance state: #{e.message}")
        send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
        exit
      rescue AWS::RDS::Errors => e
        $evm.log('error', "RDSRetire: Exception caught when deleting instance: #{e.message}")
        send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
        exit
      end
    else
      $evm.log('error', 'RDSRetire: Must specify final snapshot value.')
      send_order_status(host, headers, 'CRITICAL', order_id, info, 'Must specify final snapshot value')
    end
    while instance.exists? && instance.status == 'deleting'
      $evm.log('info', 'RDSRetire: Instance is deleting.')
      sleep 5
    end
    $evm.log('info', 'RDSRetire: Instance deletion complete. Begin payload response.')
    send_order_status(host, headers, 'OK', order_id, info, 'Instance retired.')
  else
    $evm.log('error', "RDSRetire: Instance #{db_instance_id} does not exist.")
    send_order_status(host, headers, 'CRITICAL', order_id, info, 'Instance does not exist')
  end
  
negative.code: final_snapshot = Integer(product_hash['final_snapshot'])
  access_key = product_hash['access_key_id']
  secret_access_key = product_hash['secret_access_key']
  endpoint = $evm.root['dialog_referer']
  headers = [$evm.root['dialog_email'], $evm.root['dialog_token']]
  
  $evm.log('info', "RDSRetire: snapshot identifier #{snapshot_identifier}")
  