class EC2Find::Ec2findSg
Private Instance Methods
default_attributes()
click to toggle source
# File lib/chef/knife/ec2_find_sg.rb, line 38 def default_attributes ["group_name","group_id","description","ip_permissions","ip_permissions_egress","vpc_id","tags"] end
findby(tags)
click to toggle source
# File lib/chef/knife/ec2_find_sg.rb, line 42 def findby tags ec2connect x = @ec2client.describe_security_groups({dry_run: false, filters: tags}).security_groups puts x.inspect x end