anchor.diff:  # Set the secure password
   $evm.root['root_sec_pw'] = sec_pw
   
  -security_groups = !$evm.root['dialog_security_groups'].nil? ? $evm.root['dialog_security_groups'] : ''
  +security_groups = !security_groups_init.nil? ? security_groups_init : ''
   unless security_groups.nil?
     security_array = security_groups.split(',')
     security_array.each do |security|
  
positive.code: 
  # Create instance
  begin
    rds.db_instances.create(db_instance_id, options)
  rescue AWS::RDS::Errors::InvalidClientTokenId => e
    $evm.log('error', "CreateRDS: Exception caught when creating instance: #{e.message}")
    $evm.root['instance_failed'] = true
    send_order_status('CRITICAL', order_id,  '', "#{e.message}")
    exit
  rescue AWS::RDS::Errors::DBInstanceAlreadyExists => e
    $evm.log('error', "CreateRDS: Instance exists exception: #{e.message}")
    send_order_status('CRITICAL', order_id, '', "#{e.message}")
    $evm.root['instance_failed'] = true
    exit
  rescue AWS::RDS::Errors::InvalidParameterValue => e
    $evm.log('error', "CreateRDS: Invalid parameter exception: #{e.message}")
    $evm.root['instance_failed'] = true
    send_order_status('CRITICAL', order_id, '', "#{e.message}")
    exit
  rescue AWS::RDS::Errors::StorageTypeNotSupported => e
    $evm.log('error', "CreateRDS: Unsupported storage exception: #{e.message}")
    $evm.root['instance_failed'] = true
    send_order_status('CRITICAL', order_id, '', "#{e.message}")
    exit
  rescue AWS::RDS::Errors => e
    $evm.log('error', "CreateRDS: Exception caught when creating instance: #{e.message}")
    $evm.root['instance_failed'] = true
    send_order_status('CRITICAL', order_id, '', "#{e.message}")
    exit
  rescue StandardError => e
    $evm.log('error', "CreateRDS: General exception caught: #{e.message}")
    $evm.root['instance_failed'] = true
    send_order_status('CRITICAL', order_id, '', "#{e.message}")
    exit
  end
  
negative.code:   end
  end # End of function
  
  # Retrieve properties from request
  # MIQ makes product_details into a string.
  # Must make into a hash
  product_details = $evm.root['dialog_product_details']
  $evm.log('info', "CreateS3: Product Details: #{product_details}")
  product_hash = JSON.parse(product_details.gsub("'", '"').gsub('=>', ':'))
  allocated_storage = Integer(product_hash['allocated_storage'])
  db_instance_class = product_hash['db_instance_class']
  engine = product_hash['db_engine']
  username = product_hash['master_username']
  storage_type = product_hash['dialog_storage_type']
  security_groups_init = product_hash['security_groups']
  order_id = product_hash['id']
  uuid = product_hash['uuids']
  $evm.log('info', "CreateRDS: Processing order Id #{order_id}")
  
  rds = AWS::RDS.new(
    access_key_id: "#{$evm.root['dialog_access_key_id']}",
    secret_access_key: "#{$evm.root['dialog_secret_access_key']}"
  