Module Rudy::AWS::EC2::Groups
In: lib/rudy/aws/ec2/group.rb

Methods

Included Modules

Rudy::AWS::EC2

Public Class methods

  • ghash is an EC2::Base Security Group Hash. This is the format

returned by EC2::Base#describe_security_groups

     groupName: stage-app
     groupDescription:
     ownerId: "207436219441"
     ipPermissions:
       item:
       - ipRanges:
           item:
           - cidrIp: 216.19.182.83/32
           - cidrIp: 24.5.71.201/32
           - cidrIp: 75.157.176.202/32
           - cidrIp: 84.28.52.172/32
           - cidrIp: 87.212.145.201/32
           - cidrIp: 96.49.129.178/32
         groups:
           item:
           - groupName: default
             userId: "207436219441"
           - groupName: stage-app
             userId: "207436219441"
         fromPort: "22"
         toPort: "22"
         ipProtocol: tcp

Returns a Rudy::AWS::EC2::Group object

Public Instance methods

authorise(name, addresses=[], ports=[], protocols=[], &each_group)

Alias for authorize

authorise_group(name, gname, owner, &each_group)

Alias for authorize_group

Authorize a port/protocol for a specific IP address

Create a new EC2 security group Returns list of created groups

Delete an EC2 security group Returns true/false whether successful

Does the security group name exist?

  • name a string
  • group_names is a list of security group names to look for. If it‘s empty, all groups

associated to the account will be returned.

Returns an Array of Rudy::AWS::EC2::Group objects

Revoke a port/protocol for a specific IP address Takes the same arguments as authorize

[Validate]