@@ -9,13 +9,13 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx';
99import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx';
1010import { ModuleUsage } from "../../../../../src/components/ModuleUsage";
1111
12- <VersionBadge repoTitle =" Auto Scaling Group Modules " version =" 0.21.6 " lastModifiedVersion =" 0.21.2 " />
12+ <VersionBadge repoTitle =" Auto Scaling Group Modules " version =" 0.21.7 " lastModifiedVersion =" 0.21.7 " />
1313
1414# Auto Scaling Group with Rolling Deployment Module
1515
16- <a href =" https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.6 /modules/asg-rolling-deploy " className =" link-button " title =" View the source code for this module in GitHub. " >View Source</a >
16+ <a href =" https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.7 /modules/asg-rolling-deploy " className =" link-button " title =" View the source code for this module in GitHub. " >View Source</a >
1717
18- <a href =" https://github.com/gruntwork-io/terraform-aws-asg/releases/tag/v0.21.2 " className =" link-button " title =" Release notes for only versions which impacted this module. " >Release Notes</a >
18+ <a href =" https://github.com/gruntwork-io/terraform-aws-asg/releases/tag/v0.21.7 " className =" link-button " title =" Release notes for only versions which impacted this module. " >Release Notes</a >
1919
2020This Terraform Module creates an Auto Scaling Group (ASG) that can do a zero-downtime rolling deployment. That means
2121every time you update your app (e.g. publish a new AMI), all you have to do is run ` terraform apply ` and the new
@@ -56,7 +56,7 @@ update your launch templates (e.g. by specifying a new AMI to deploy), Terraform
5656Note that if all we did was use ` create_before_destroy ` , on each redeploy, our ASG would reset to its hard-coded
5757` desired_capacity ` , losing the capacity changes from auto scaling policies. We solve this problem by using an
5858[ external data source] ( https://www.terraform.io/docs/providers/external/data_source.html ) that runs the Python script
59- [ get-desired-capacity.py] ( https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.6 /modules/asg-rolling-deploy/describe-autoscaling-group/get-desired-capacity.py ) to fetch the latest value of the
59+ [ get-desired-capacity.py] ( https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.7 /modules/asg-rolling-deploy/describe-autoscaling-group/get-desired-capacity.py ) to fetch the latest value of the
6060` desired_capacity ` parameter:
6161
6262* If the script finds a value from an already-existing ASG, we use it, to ensure that the changes form auto scaling
@@ -77,21 +77,22 @@ Note that if all we did was use `create_before_destroy`, on each redeploy, our A
7777
7878module "asg_rolling_deploy" {
7979
80- source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.6 "
80+ source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.7 "
8181
8282 # ----------------------------------------------------------------------------------------------------
8383 # REQUIRED VARIABLES
8484 # ----------------------------------------------------------------------------------------------------
8585
86- # The desired number of EC2 Instances to run in the ASG initially. Note that auto
87- # scaling policies may change this value. If you're using auto scaling policies to
88- # dynamically resize the cluster, you should actually leave this value as null.
86+ # The desired number of EC2 Instances to run in the ASG initially. Note that
87+ # auto scaling policies may change this value. If you're using auto scaling
88+ # policies to dynamically resize the cluster, you should actually leave this
89+ # value as null.
8990 desired_capacity = <number>
9091
91- # The ID and version of the Launch Template to use for each EC2 instance in this
92- # ASG. The version value MUST be an output of the Launch Template resource itself.
93- # This ensures that a new ASG is created every time a new Launch Template version
94- # is created.
92+ # The ID and version of the Launch Template to use for each EC2 instance in
93+ # this ASG. The version value MUST be an output of the Launch Template
94+ # resource itself. This ensures that a new ASG is created every time a new
95+ # Launch Template version is created.
9596 launch_template = <object(
9697 id = string
9798 name = string
@@ -114,18 +115,18 @@ module "asg_rolling_deploy" {
114115 # Override the auto-generated ASG name with this value.
115116 asg_name = ""
116117
117- # A list of custom tags to apply to the EC2 Instances in this ASG. Each item in
118- # this list should be a map with the parameters key, value, and
118+ # A list of custom tags to apply to the EC2 Instances in this ASG. Each item
119+ # in this list should be a map with the parameters key, value, and
119120 # propagate_at_launch.
120121 custom_tags = []
121122
122123 # Timeout value for deletion operations on autoscale groups.
123124 deletion_timeout = "10m"
124125
125- # A list of metrics the ASG should enable for monitoring all instances in a group.
126- # The allowed values are GroupMinSize, GroupMaxSize, GroupDesiredCapacity ,
127- # GroupInServiceInstances, GroupPendingInstances, GroupStandbyInstances ,
128- # GroupTerminatingInstances, GroupTotalInstances.
126+ # A list of metrics the ASG should enable for monitoring all instances in a
127+ # group. The allowed values are GroupMinSize, GroupMaxSize,
128+ # GroupDesiredCapacity, GroupInServiceInstances, GroupPendingInstances ,
129+ # GroupStandbyInstances, GroupTerminatingInstances, GroupTotalInstances.
129130 enabled_metrics = []
130131
131132 # Time, in seconds, after an EC2 Instance comes into service before checking
@@ -136,34 +137,36 @@ module "asg_rolling_deploy" {
136137 # you're using the Application Load Balancer (ALB), see var.target_group_arns.
137138 load_balancers = []
138139
139- # The maximum amount of time, in seconds, that an instance inside an ASG can be in
140- # service, values must be either equal to 0 or between 604800 and 31536000
141- # seconds.
140+ # The maximum amount of time, in seconds, that an instance inside an ASG can
141+ # be in service, values must be either equal to 0 or between 604800 and
142+ # 31536000 seconds.
142143 max_instance_lifetime = null
143144
144- # Wait for this number of EC2 Instances to show up healthy in the load balancer on
145- # creation.
145+ # Wait for this number of EC2 Instances to show up healthy in the load
146+ # balancer on creation.
146147 min_elb_capacity = 0
147148
148- # The key for the tag that will be used to associate a unique identifier with this
149- # ASG. This identifier will persist between redeploys of the ASG, even though the
150- # underlying ASG is being deleted and replaced with a different one.
149+ # The key for the tag that will be used to associate a unique identifier with
150+ # this ASG. This identifier will persist between redeploys of the ASG, even
151+ # though the underlying ASG is being deleted and replaced with a different
152+ # one.
151153 tag_asg_id_key = "AsgId"
152154
153- # A list of Application Load Balancer (ALB) target group ARNs to associate with
154- # this ASG. If you're using the Elastic Load Balancer (ELB), see
155+ # A list of Application Load Balancer (ALB) target group ARNs to associate
156+ # with this ASG. If you're using the Elastic Load Balancer (ELB), see
155157 # var.load_balancers.
156158 target_group_arns = []
157159
158- # A list of policies to decide how the instances in the auto scale group should be
159- # terminated. The allowed values are OldestInstance, NewestInstance,
160- # OldestLaunchTemplate, AllocationStrategy, ClosestToNextInstanceHour, Default.
160+ # A list of policies to decide how the instances in the auto scale group
161+ # should be terminated. The allowed values are OldestInstance, NewestInstance,
162+ # OldestLaunchTemplate, AllocationStrategy, ClosestToNextInstanceHour,
163+ # Default.
161164 termination_policies = []
162165
163- # Whether or not ELB or ALB health checks should be enabled. If set to true, the
164- # load_balancers or target_groups_arns variable should be set depending on the
165- # load balancer type you are using. Useful for testing connectivity before health
166- # check endpoints are available.
166+ # Whether or not ELB or ALB health checks should be enabled. If set to true,
167+ # the load_balancers or target_groups_arns variable should be set depending on
168+ # the load balancer type you are using. Useful for testing connectivity before
169+ # health check endpoints are available.
167170 use_elb_health_checks = true
168171
169172 # A maximum duration that Terraform should wait for the EC2 Instances to be
@@ -185,7 +188,7 @@ module "asg_rolling_deploy" {
185188# ------------------------------------------------------------------------------------------------------
186189
187190terraform {
188- source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.6 "
191+ source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.7 "
189192}
190193
191194inputs = {
@@ -194,15 +197,16 @@ inputs = {
194197 # REQUIRED VARIABLES
195198 # ----------------------------------------------------------------------------------------------------
196199
197- # The desired number of EC2 Instances to run in the ASG initially. Note that auto
198- # scaling policies may change this value. If you're using auto scaling policies to
199- # dynamically resize the cluster, you should actually leave this value as null.
200+ # The desired number of EC2 Instances to run in the ASG initially. Note that
201+ # auto scaling policies may change this value. If you're using auto scaling
202+ # policies to dynamically resize the cluster, you should actually leave this
203+ # value as null.
200204 desired_capacity = <number>
201205
202- # The ID and version of the Launch Template to use for each EC2 instance in this
203- # ASG. The version value MUST be an output of the Launch Template resource itself.
204- # This ensures that a new ASG is created every time a new Launch Template version
205- # is created.
206+ # The ID and version of the Launch Template to use for each EC2 instance in
207+ # this ASG. The version value MUST be an output of the Launch Template
208+ # resource itself. This ensures that a new ASG is created every time a new
209+ # Launch Template version is created.
206210 launch_template = <object(
207211 id = string
208212 name = string
@@ -225,18 +229,18 @@ inputs = {
225229 # Override the auto-generated ASG name with this value.
226230 asg_name = ""
227231
228- # A list of custom tags to apply to the EC2 Instances in this ASG. Each item in
229- # this list should be a map with the parameters key, value, and
232+ # A list of custom tags to apply to the EC2 Instances in this ASG. Each item
233+ # in this list should be a map with the parameters key, value, and
230234 # propagate_at_launch.
231235 custom_tags = []
232236
233237 # Timeout value for deletion operations on autoscale groups.
234238 deletion_timeout = "10m"
235239
236- # A list of metrics the ASG should enable for monitoring all instances in a group.
237- # The allowed values are GroupMinSize, GroupMaxSize, GroupDesiredCapacity ,
238- # GroupInServiceInstances, GroupPendingInstances, GroupStandbyInstances ,
239- # GroupTerminatingInstances, GroupTotalInstances.
240+ # A list of metrics the ASG should enable for monitoring all instances in a
241+ # group. The allowed values are GroupMinSize, GroupMaxSize,
242+ # GroupDesiredCapacity, GroupInServiceInstances, GroupPendingInstances ,
243+ # GroupStandbyInstances, GroupTerminatingInstances, GroupTotalInstances.
240244 enabled_metrics = []
241245
242246 # Time, in seconds, after an EC2 Instance comes into service before checking
@@ -247,34 +251,36 @@ inputs = {
247251 # you're using the Application Load Balancer (ALB), see var.target_group_arns.
248252 load_balancers = []
249253
250- # The maximum amount of time, in seconds, that an instance inside an ASG can be in
251- # service, values must be either equal to 0 or between 604800 and 31536000
252- # seconds.
254+ # The maximum amount of time, in seconds, that an instance inside an ASG can
255+ # be in service, values must be either equal to 0 or between 604800 and
256+ # 31536000 seconds.
253257 max_instance_lifetime = null
254258
255- # Wait for this number of EC2 Instances to show up healthy in the load balancer on
256- # creation.
259+ # Wait for this number of EC2 Instances to show up healthy in the load
260+ # balancer on creation.
257261 min_elb_capacity = 0
258262
259- # The key for the tag that will be used to associate a unique identifier with this
260- # ASG. This identifier will persist between redeploys of the ASG, even though the
261- # underlying ASG is being deleted and replaced with a different one.
263+ # The key for the tag that will be used to associate a unique identifier with
264+ # this ASG. This identifier will persist between redeploys of the ASG, even
265+ # though the underlying ASG is being deleted and replaced with a different
266+ # one.
262267 tag_asg_id_key = "AsgId"
263268
264- # A list of Application Load Balancer (ALB) target group ARNs to associate with
265- # this ASG. If you're using the Elastic Load Balancer (ELB), see
269+ # A list of Application Load Balancer (ALB) target group ARNs to associate
270+ # with this ASG. If you're using the Elastic Load Balancer (ELB), see
266271 # var.load_balancers.
267272 target_group_arns = []
268273
269- # A list of policies to decide how the instances in the auto scale group should be
270- # terminated. The allowed values are OldestInstance, NewestInstance,
271- # OldestLaunchTemplate, AllocationStrategy, ClosestToNextInstanceHour, Default.
274+ # A list of policies to decide how the instances in the auto scale group
275+ # should be terminated. The allowed values are OldestInstance, NewestInstance,
276+ # OldestLaunchTemplate, AllocationStrategy, ClosestToNextInstanceHour,
277+ # Default.
272278 termination_policies = []
273279
274- # Whether or not ELB or ALB health checks should be enabled. If set to true, the
275- # load_balancers or target_groups_arns variable should be set depending on the
276- # load balancer type you are using. Useful for testing connectivity before health
277- # check endpoints are available.
280+ # Whether or not ELB or ALB health checks should be enabled. If set to true,
281+ # the load_balancers or target_groups_arns variable should be set depending on
282+ # the load balancer type you are using. Useful for testing connectivity before
283+ # health check endpoints are available.
278284 use_elb_health_checks = true
279285
280286 # A maximum duration that Terraform should wait for the EC2 Instances to be
@@ -543,11 +549,11 @@ A maximum duration that Terraform should wait for the EC2 Instances to be health
543549<!-- ##DOCS-SOURCER-START
544550{
545551 "originalSources": [
546- "https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.6 /modules/asg-rolling-deploy/readme.md",
547- "https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.6 /modules/asg-rolling-deploy/variables.tf",
548- "https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.6 /modules/asg-rolling-deploy/outputs.tf"
552+ "https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.7 /modules/asg-rolling-deploy/readme.md",
553+ "https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.7 /modules/asg-rolling-deploy/variables.tf",
554+ "https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.7 /modules/asg-rolling-deploy/outputs.tf"
549555 ],
550556 "sourcePlugin": "module-catalog-api",
551- "hash": "3b7e020549e9f2030bd197f5abd59a6d "
557+ "hash": "5d37a387fd50416ea53fd8ddfd1dfb33 "
552558}
553559##DOCS-SOURCER-END -->
0 commit comments