INNER CODE UNIT · Ruby

execute_aggregate_scan

stelligent/cfn_nag · lib/cfn-nag/cfn_nag_executor.rb:49

  def execute_aggregate_scan(cfn_nag, opts)
    cfn_nag.audit_aggregate_across_files_and_render_results(
      input_path: opts[:input_path],
      output_format: opts[:output_format],
      parameter_values_path: opts[:parameter_values_path],
      condition_values_path: opts[:condition_values_path],
      template_pattern: opts[:template_pattern]
    )
  end

  def scan_file(cfn_nag, fail_on_warnings)
    audit_result = cfn_nag.audit(cloudformation_string: argf_read,
                                 parameter_values_string: @parameter_values_string,
                                 condition_values_string: @condition_values_string)

    @total_failure_count += if fail_on_warnings
                              audit_result[:violations].length
                            else

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…