Sha256: 27814593831d4903b728ee17f338a0e35ea5f0acc0655f17d06fb49fbe342e53
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
<% load_balancers.each do |load_balancer| -%> <%- load_balancer_attributes = load_balancer_attributes_of(load_balancer) -%> resource "aws_elb" "<%= module_name_of(load_balancer) %>" { name = "<%= load_balancer.load_balancer_name %>" <%- if vpc_elb?(load_balancer) -%> subnets = <%= load_balancer.subnets.inspect %> <%- else -%> availability_zones = <%= load_balancer.availability_zones.inspect %> <%- end -%> security_groups = <%= load_balancer.security_groups.inspect %> instances = <%= load_balancer.instances.map { |instance| instance.instance_id }.inspect %> cross_zone_load_balancing = <%= load_balancer_attributes.cross_zone_load_balancing.enabled %> idle_timeout = <%= load_balancer_attributes.connection_settings.idle_timeout %> connection_draining = <%= load_balancer_attributes.connection_draining.enabled %> connection_draining_timeout = <%= load_balancer_attributes.connection_draining.timeout %> <% load_balancer.listener_descriptions.map { |ld| ld.listener }.map do |listener| -%> listener { instance_port = <%= listener.instance_port %> instance_protocol = "<%= listener.instance_protocol.downcase %>" lb_port = <%= listener.load_balancer_port %> lb_protocol = "<%= listener.protocol.downcase %>" ssl_certificate_id = "<%= listener.ssl_certificate_id %>" } <% end -%> health_check { healthy_threshold = <%= load_balancer.health_check.healthy_threshold %> unhealthy_threshold = <%= load_balancer.health_check.unhealthy_threshold %> interval = <%= load_balancer.health_check.interval %> target = "<%= load_balancer.health_check.target %>" timeout = <%= load_balancer.health_check.timeout %> } } <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
terraforming-0.1.1 | lib/terraforming/template/tf/elb.erb |
terraforming-0.1.0 | lib/terraforming/template/tf/elb.erb |