lib/terraforming/template/tf/elb.erb in terraforming-0.8.0 vs lib/terraforming/template/tf/elb.erb in terraforming-0.9.0
- old
+ new
@@ -11,10 +11,19 @@
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 %>
+ internal = <%= internal?(load_balancer).to_s %>
+<%- if load_balancer_attributes.access_log.enabled -%>
+ access_logs {
+ bucket = "<%= load_balancer_attributes.access_log.s3_bucket_name %>"
+ bucket_prefix = "<%= load_balancer_attributes.access_log.s3_bucket_prefix %>"
+ interval = <%= load_balancer_attributes.access_log.emit_interval %>
+ }
+
+<%- end -%>
<% 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 %>