Sha256: d1ba255a62da84a4eaff1336828edc1a8045026be5db1318c0641de498c5613d

Contents?: true

Size: 1.04 KB

Versions: 17

Compression:

Stored size: 1.04 KB

Contents

<% auto_scaling_groups.each do |group| -%>
<%- vpc_zone_specified = vpc_zone_specified?(group) -%>
resource "aws_autoscaling_group" "<%= module_name_of(group) %>" {
<%- unless vpc_zone_specified -%>
    availability_zones        = <%= group.availability_zones.inspect %>
<%- end -%>
    desired_capacity          = <%= group.desired_capacity %>
    health_check_grace_period = <%= group.health_check_grace_period %>
    health_check_type         = "<%= group.health_check_type %>"
    launch_configuration      = "<%= group.launch_configuration_name %>"
    max_size                  = <%= group.max_size %>
    min_size                  = <%= group.min_size %>
    name                      = "<%= group.auto_scaling_group_name %>"
<%- if vpc_zone_specified -%>
    vpc_zone_identifier       = <%= vpc_zone_identifier_of(group).inspect %>
<%- end -%>

<% group.tags.each do |tag| -%>
    tag {
        key   = "<%= tag.key %>"
        value = "<%= tag.value %>"
        propagate_at_launch = <%= tag.propagate_at_launch.to_s %>
    }

<% end -%>
}

<% end -%>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
terraforming-0.18.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.17.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.16.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.15.0 lib/terraforming/template/tf/auto_scaling_group.erb
aws-insight-0.14.1 lib/terraforming/template/tf/auto_scaling_group.erb
aws-insight-0.14.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.14.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.13.2 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.13.1 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.13.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.12.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.11.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.10.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.9.1 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.9.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.8.0 lib/terraforming/template/tf/auto_scaling_group.erb
terraforming-0.7.0 lib/terraforming/template/tf/auto_scaling_group.erb