You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_create_launch_template"></a> [create\_launch\_template](#input\_create\_launch\_template)| Determines whether to create launch template or not |`bool`|`true`| no |
275
275
| <aname="input_create_scaling_policy"></a> [create\_scaling\_policy](#input\_create\_scaling\_policy)| Determines whether to create target scaling policy schedule or not |`bool`|`true`| no |
276
276
| <aname="input_create_schedule"></a> [create\_schedule](#input\_create\_schedule)| Determines whether to create autoscaling group schedule or not |`bool`|`true`| no |
277
-
| <aname="input_create_traffic_source_attachment"></a> [create\_traffic\_source\_attachment](#input\_create\_traffic\_source\_attachment)| Determines whether to create autoscaling group traffic source attachment |`bool`|`false`| no |
278
277
| <aname="input_credit_specification"></a> [credit\_specification](#input\_credit\_specification)| Customize the credit specification of the instance |`map(string)`|`{}`| no |
279
278
| <aname="input_default_cooldown"></a> [default\_cooldown](#input\_default\_cooldown)| The amount of time, in seconds, after a scaling activity completes before another scaling activity can start |`number`|`null`| no |
280
279
| <aname="input_default_instance_warmup"></a> [default\_instance\_warmup](#input\_default\_instance\_warmup)| Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. |`number`|`null`| no |
@@ -322,7 +321,6 @@ No modules.
322
321
| <aname="input_launch_template_use_name_prefix"></a> [launch\_template\_use\_name\_prefix](#input\_launch\_template\_use\_name\_prefix)| Determines whether to use `launch_template_name` as is or create a unique name beginning with the `launch_template_name` as the prefix |`bool`|`true`| no |
323
322
| <aname="input_launch_template_version"></a> [launch\_template\_version](#input\_launch\_template\_version)| Launch template version. Can be version number, `$Latest`, or `$Default`|`string`|`null`| no |
324
323
| <aname="input_license_specifications"></a> [license\_specifications](#input\_license\_specifications)| A list of license specifications to associate with |`map(string)`|`{}`| no |
325
-
| <aname="input_load_balancers"></a> [load\_balancers](#input\_load\_balancers)| A list of elastic load balancer names to add to the autoscaling group names. Only valid for classic load balancers. For ALBs, use `target_group_arns` instead |`list(string)`|`[]`| no |
326
324
| <aname="input_maintenance_options"></a> [maintenance\_options](#input\_maintenance\_options)| The maintenance options for the instance |`any`|`{}`| no |
327
325
| <aname="input_max_instance_lifetime"></a> [max\_instance\_lifetime](#input\_max\_instance\_lifetime)| The maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds |`number`|`null`| no |
328
326
| <aname="input_max_size"></a> [max\_size](#input\_max\_size)| The maximum size of the autoscaling group |`number`|`null`| no |
@@ -346,10 +344,8 @@ No modules.
346
344
| <aname="input_suspended_processes"></a> [suspended\_processes](#input\_suspended\_processes)| A list of processes to suspend for the Auto Scaling Group. The allowed values are `Launch`, `Terminate`, `HealthCheck`, `ReplaceUnhealthy`, `AZRebalance`, `AlarmNotification`, `ScheduledActions`, `AddToLoadBalancer`, `InstanceRefresh`. Note that if you suspend either the `Launch` or `Terminate` process types, it can prevent your Auto Scaling Group from functioning properly |`list(string)`|`[]`| no |
347
345
| <aname="input_tag_specifications"></a> [tag\_specifications](#input\_tag\_specifications)| The tags to apply to the resources during launch |`list(any)`|`[]`| no |
348
346
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to assign to resources |`map(string)`|`{}`| no |
349
-
| <aname="input_target_group_arns"></a> [target\_group\_arns](#input\_target\_group\_arns)| A set of `aws_alb_target_group` ARNs, for use with Application or Network Load Balancing |`list(string)`|`[]`| no |
350
347
| <aname="input_termination_policies"></a> [termination\_policies](#input\_termination\_policies)| A list of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are `OldestInstance`, `NewestInstance`, `OldestLaunchConfiguration`, `ClosestToNextInstanceHour`, `OldestLaunchTemplate`, `AllocationStrategy`, `Default`|`list(string)`|`[]`| no |
351
-
| <aname="input_traffic_source_identifier"></a> [traffic\_source\_identifier](#input\_traffic\_source\_identifier)| Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region |`string`|`""`| no |
352
-
| <aname="input_traffic_source_type"></a> [traffic\_source\_type](#input\_traffic\_source\_type)| Provides additional context for the value of identifier. The following lists the valid values: `elb` if `identifier` is the name of a Classic Load Balancer. `elbv2` if `identifier` is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. `vpc-lattice` if `identifier` is the ARN of a VPC Lattice target group |`string`|`"elbv2"`| no |
348
+
| <aname="input_traffic_source_attachments"></a> [traffic\_source\_attachments](#input\_traffic\_source\_attachments)| Map of traffic source attachment definitions to create |`any`|`{}`| no |
353
349
| <aname="input_update_default_version"></a> [update\_default\_version](#input\_update\_default\_version)| Whether to update Default Version each update. Conflicts with `default_version`|`bool`|`null`| no |
354
350
| <aname="input_use_mixed_instances_policy"></a> [use\_mixed\_instances\_policy](#input\_use\_mixed\_instances\_policy)| Determines whether to use a mixed instances policy in the autoscaling group or not |`bool`|`false`| no |
355
351
| <aname="input_use_name_prefix"></a> [use\_name\_prefix](#input\_use\_name\_prefix)| Determines whether to use `name` as is or create a unique name beginning with the `name` as the prefix |`bool`|`true`| no |
If you have any questions regarding this upgrade process, please consult the [`examples`](https://github.com/terraform-aws-modules/terraform-aws-autoscaling/tree/master/examples/complete) directory:
4
+
If you find a bug, please open an issue with supporting configuration to reproduce.
5
+
6
+
## List of backwards incompatible changes
7
+
8
+
-`target_group_arns` and `load_balancers` are no longer supported on the ASG; instead users should use the `traffic_source_attachments` which cover this functionality and more
9
+
- Users can now create multiple `traffic_source_attachments` instead of previously where the module only supported one attachment
10
+
- The minimum supported version of Terraform has been raised to `v1.3`
description="A list of elastic load balancer names to add to the autoscaling group names. Only valid for classic load balancers. For ALBs, use `target_group_arns` instead"
126
-
type=list(string)
127
-
default=[]
128
-
}
129
-
130
-
variable"target_group_arns" {
131
-
description="A set of `aws_alb_target_group` ARNs, for use with Application or Network Load Balancing"
132
-
type=list(string)
133
-
default=[]
134
-
}
135
-
136
124
variable"placement_group" {
137
125
description="The name of the placement group into which you'll launch your instances, if any"
description="Determines whether to create autoscaling group traffic source attachment"
477
-
type=bool
478
-
default=false
479
-
}
480
-
481
-
variable"traffic_source_identifier" {
482
-
description="Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region"
483
-
type=string
484
-
default=""
485
-
}
486
-
487
-
variable"traffic_source_type" {
488
-
description="Provides additional context for the value of identifier. The following lists the valid values: `elb` if `identifier` is the name of a Classic Load Balancer. `elbv2` if `identifier` is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. `vpc-lattice` if `identifier` is the ARN of a VPC Lattice target group"
489
-
type=string
490
-
default="elbv2"
463
+
variable"traffic_source_attachments" {
464
+
description="Map of traffic source attachment definitions to create"
0 commit comments