Sha256: d3b1dc8cbd413d4ac58045a2f99b338f715df79407497562d47de159d141ed9a

Contents?: true

Size: 670 Bytes

Versions: 26

Compression:

Stored size: 670 Bytes

Contents

module Ufo::Cfn::Stack::Builder::Resources::SecurityGroup
  class EcsRule < Base
    def build
      return unless managed_security_groups?
      return unless vars[:elb_type] == "application"

      {
        Type: "AWS::EC2::SecurityGroupIngress",
        Condition: "CreateElbIsTrue",
        Properties: {
          IpProtocol: "tcp",
          FromPort: "0",
          ToPort: "65535",
          SourceSecurityGroupId: {
            "Fn::GetAtt": "ElbSecurityGroup.GroupId"
          },
          GroupId: {
            "Fn::GetAtt": "EcsSecurityGroup.GroupId"
          },
          Description: "application elb access to ecs"
        }
      }
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ufo-6.3.3 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.2 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.1 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.0 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.2.5 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.2.4 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.2.3 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.2.2 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.2.1 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.2.0 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.1.5 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.1.4 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.1.3 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.1.2 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.1.1 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.1.0 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.0.9 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.0.8 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.0.7 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.0.6 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb