Class: Akashi::Vpc::SecurityGroup::Web

Inherits:
Base show all
Defined in:
lib/akashi/vpc/security_group/web.rb

Class Method Summary collapse

Methods inherited from Base

all, create, name, object_class, role

Methods inherited from Ec2::Base

#name, #name=, service_class

Methods inherited from Base

all, base_class, collection, find, find_by, #initialize, object_class, where

Constructor Details

This class inherits a constructor from Akashi::Base

Class Method Details

.ingress_ip_permissionsObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/akashi/vpc/security_group/web.rb', line 6

def ingress_ip_permissions
  @ingress_ip_permissions ||= [
    {
      protocol: :tcp,
      port:     80,
      sources:  [
        "10.0.0.0/19",
      ],
    },
    {
      protocol: :tcp,
      port:     9922,
      sources:  [
        "10.0.32.0/19",
      ],
    },
    {
      protocol: :icmp,
      port:     -1,
      sources:  [
        "10.0.32.0/19",
      ],
    },
  ]
end