code: def preprocessing(aws_config, ip_ranges = [], ip_ranges_name_key = None):
      
  
      map_all_sgs(aws_config)
      map_all_subnets(aws_config)
      set_emr_vpc_ids(aws_config)
      #parse_elb_policies(aws_config)
  
      # Various data processing calls
      add_security_group_name_to_ec2_grants(aws_config['services']['ec2'], aws_config['aws_account_id'])
      process_cloudtrail_trails(aws_config['services']['cloudtrail'])
      add_cidr_display_name(aws_config, ip_ranges, ip_ranges_name_key)
      merge_route53_and_route53domains(aws_config)
      match_instances_and_roles(aws_config)
      match_iam_policies_and_buckets(aws_config)
  
      # Preprocessing dictated by metadata
      process_metadata_callbacks(aws_config)
docs: Tweak the AWS config to match cross-service resources and clean any fetching artifacts
  
      :param aws_config:
      :return: