Sha256: 61117e6774afdb2afdd441a4bb0fc8ce123b12cf9e3f251d8896d95e05676a9e

Contents?: true

Size: 619 Bytes

Versions: 10

Compression:

Stored size: 619 Bytes

Contents

module Ufo::Cfn::Stack::Builder::Resources::SecurityGroup
  class EcsRule < Base
    def build
      return unless manage_ecs_security_group?

      {
        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

10 entries across 10 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.12 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.11 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.10 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.9 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.8 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.7 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.6 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.5 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb
ufo-6.3.4 lib/ufo/cfn/stack/builder/resources/security_group/ecs_rule.rb