Sha256: dd976add42d196a0f765e6369c042a4852c508fcb3e3894aa36419ea1a2cb9ca
Contents?: true
Size: 789 Bytes
Versions: 32
Compression:
Stored size: 789 Bytes
Contents
class Ufo::Cfn::Stack::Builder::Resources class Elb < Base def build { Type: "AWS::ElasticLoadBalancingV2::LoadBalancer", Condition: "CreateElbIsTrue", Properties: properties, } end def properties props = { Type: vars[:elb_type], Tags: [ {Key: "Name", Value: @stack_name} ], Scheme: "internet-facing" } props[:SecurityGroups] = security_groups(:elb) if vars[:elb_type] == "application" subnets(props) props end def subnets(props) mappings = Ufo.config.elb.subnet_mappings if mappings && vars[:elb_type] == "network" props[:SubnetMappings] = mappings else props[:Subnets] = {Ref: "ElbSubnets"} end end end end
Version data entries
32 entries across 32 versions & 1 rubygems