Sha256: 7e2b4a79266f4d19176fa05c2c418088bb679fe215cde0f7fb6bbbb659fbb8a3
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
#!/usr/bin/env ruby require 'aws_security_viz' require 'trollop' opts = Trollop::options do opt :access_key, 'AWS access key', :type => :string opt :secret_key, 'AWS secret key', :type => :string opt :region, 'AWS region to query', :default => 'us-east-1', :type => :string opt :source_file, 'JSON source file containing security groups', :type => :string opt :filename, 'Output file name', :type => :string, :default => 'aws-security-viz.png' opt :config, 'Config file (opts.yml)', :type => :string, :default => 'opts.yml' opt :color, 'Colored node edges', :default => false opt :source_filter, 'Source filter', :default => nil, :type => :string opt :target_filter, 'Target filter', :default => nil, :type => :string end cmd = ARGV.shift if cmd=="setup" AwsConfig.write(opts[:config]) puts "#{opts[:config]} created in current directory." exit end config = AwsConfig.load(opts[:config]).merge(obfuscate: ENV['OBFUSCATE'], debug: ENV['DEBUG']) begin VisualizeAws.new(config, opts).unleash(opts[:filename]) rescue Exception => e puts "[ERROR] #{e.message}" exit 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aws_security_viz-0.1.5.pre.alpha.pre.83 | exe/aws_security_viz |
aws_security_viz-0.1.4 | exe/aws_security_viz |
aws_security_viz-0.1.4.pre.alpha.pre.82 | exe/aws_security_viz |