From 6a74535be972dfb3256362b4b6d52e054500d860 Mon Sep 17 00:00:00 2001 From: "docs-sourcer[bot]" <99042413+docs-sourcer[bot]@users.noreply.github.com> Date: Thu, 8 May 2025 18:17:42 +0000 Subject: [PATCH] Updated with the [latest changes](https://github.com/gruntwork-io/terraform-aws-asg/releases/tag/v0.21.20) from the `terraform-aws-asg@v0.21.20` source branch. --- .../asg-instance-refresh.md | 16 +++++++------- .../asg-rolling-deploy/asg-rolling-deploy.md | 18 +++++++-------- .../server-group/server-group.md | 22 +++++++++---------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/reference/modules/terraform-aws-asg/asg-instance-refresh/asg-instance-refresh.md b/docs/reference/modules/terraform-aws-asg/asg-instance-refresh/asg-instance-refresh.md index ed8b0b78b..01da15355 100644 --- a/docs/reference/modules/terraform-aws-asg/asg-instance-refresh/asg-instance-refresh.md +++ b/docs/reference/modules/terraform-aws-asg/asg-instance-refresh/asg-instance-refresh.md @@ -9,11 +9,11 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx'; import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx'; import { ModuleUsage } from "../../../../../src/components/ModuleUsage"; - + # Auto Scaling Group Module with Instance Refresh -View Source +View Source Release Notes @@ -89,7 +89,7 @@ The Terraform [instance_refresh](https://registry.terraform.io/providers/hashico module "asg_instance_refresh" { - source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-instance-refresh?ref=v0.21.19" + source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-instance-refresh?ref=v0.21.20" # ---------------------------------------------------------------------------------------------------- # REQUIRED VARIABLES @@ -220,7 +220,7 @@ module "asg_instance_refresh" { # ------------------------------------------------------------------------------------------------------ terraform { - source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-instance-refresh?ref=v0.21.19" + source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-instance-refresh?ref=v0.21.20" } inputs = { @@ -651,11 +651,11 @@ A maximum duration that Terraform should wait for the EC2 Instances to be health diff --git a/docs/reference/modules/terraform-aws-asg/asg-rolling-deploy/asg-rolling-deploy.md b/docs/reference/modules/terraform-aws-asg/asg-rolling-deploy/asg-rolling-deploy.md index 6bebc6c9f..b31ca8e57 100644 --- a/docs/reference/modules/terraform-aws-asg/asg-rolling-deploy/asg-rolling-deploy.md +++ b/docs/reference/modules/terraform-aws-asg/asg-rolling-deploy/asg-rolling-deploy.md @@ -9,11 +9,11 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx'; import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx'; import { ModuleUsage } from "../../../../../src/components/ModuleUsage"; - + # Auto Scaling Group with Rolling Deployment Module -View Source +View Source Release Notes @@ -56,7 +56,7 @@ update your launch templates (e.g. by specifying a new AMI to deploy), Terraform Note that if all we did was use `create_before_destroy`, on each redeploy, our ASG would reset to its hard-coded `desired_capacity`, losing the capacity changes from auto scaling policies. We solve this problem by using an [external data source](https://www.terraform.io/docs/providers/external/data_source.html) that runs the Python script -[get-desired-capacity.py](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.19/modules/asg-rolling-deploy/describe-autoscaling-group/get-desired-capacity.py) to fetch the latest value of the +[get-desired-capacity.py](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.20/modules/asg-rolling-deploy/describe-autoscaling-group/get-desired-capacity.py) to fetch the latest value of the `desired_capacity` parameter: * If the script finds a value from an already-existing ASG, we use it, to ensure that the changes form auto scaling @@ -77,7 +77,7 @@ Note that if all we did was use `create_before_destroy`, on each redeploy, our A module "asg_rolling_deploy" { - source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.19" + source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.20" # ---------------------------------------------------------------------------------------------------- # REQUIRED VARIABLES @@ -231,7 +231,7 @@ module "asg_rolling_deploy" { # ------------------------------------------------------------------------------------------------------ terraform { - source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.19" + source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/asg-rolling-deploy?ref=v0.21.20" } inputs = { @@ -729,11 +729,11 @@ A maximum duration that Terraform should wait for the EC2 Instances to be health diff --git a/docs/reference/modules/terraform-aws-asg/server-group/server-group.md b/docs/reference/modules/terraform-aws-asg/server-group/server-group.md index ddebb0343..9faf5e313 100644 --- a/docs/reference/modules/terraform-aws-asg/server-group/server-group.md +++ b/docs/reference/modules/terraform-aws-asg/server-group/server-group.md @@ -9,11 +9,11 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx'; import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx'; import { ModuleUsage } from "../../../../../src/components/ModuleUsage"; - + # Server Group Module -View Source +View Source Release Notes @@ -37,7 +37,7 @@ Scaling Group (ASG). ## Quick start -Check out the [server-group examples](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.19/examples/server-group) for sample code that demonstrates how to use this module. +Check out the [server-group examples](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.20/examples/server-group) for sample code that demonstrates how to use this module. ## Background @@ -50,7 +50,7 @@ Check out the [server-group examples](https://github.com/gruntwork-io/terraform- The first question you may ask is, how is this different than an [Auto Scaling Group (ASG)](http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html)? While an ASG does allow you to run a cluster of servers, automaticaly replace failed servers, and do zero-downtime deployment (see the -[asg-rolling-deploy module](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.19/modules/asg-rolling-deploy)), attaching ENIs and EBS Volumes to servers in an ASG is very +[asg-rolling-deploy module](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.20/modules/asg-rolling-deploy)), attaching ENIs and EBS Volumes to servers in an ASG is very tricky: 1. Using ENIs and EBS Volumes with ASGs is not natively supported by Terraform. The @@ -87,7 +87,7 @@ The solution used in this module is to: The server-group module will perform a zero-downtime, rolling deployment every time you make a change to the code and run `terraform apply`. This deployment process is implemented in a Python script called -[rolling_deployment.py](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.19/modules/server-group/rolling-deploy/rolling_deployment.py) which runs in a [local-exec +[rolling_deployment.py](https://github.com/gruntwork-io/terraform-aws-asg/tree/v0.21.20/modules/server-group/rolling-deploy/rolling_deployment.py) which runs in a [local-exec provisioner](https://www.terraform.io/docs/provisioners/local-exec.html). Here is how it works: @@ -147,7 +147,7 @@ module in your Terraform code: module "server_group" { - source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/server-group?ref=v0.21.19" + source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/server-group?ref=v0.21.20" # ---------------------------------------------------------------------------------------------------- # REQUIRED VARIABLES @@ -466,7 +466,7 @@ module "server_group" { # ------------------------------------------------------------------------------------------------------ terraform { - source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/server-group?ref=v0.21.19" + source = "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/server-group?ref=v0.21.20" } inputs = { @@ -1445,11 +1445,11 @@ Other modules can depend on this variable to ensure those modules only deploy af