Skip to content

Commit

Permalink
WIP: Use updated AWS provider to refresh autoscaling
Browse files Browse the repository at this point in the history
@xmunoz mentioned in #25 that Terraform didn't yet support
automatically refreshing instances with new code.  This is an issue
because, assuming we have multiple autoscaled instances up at a moment
when we want to do a code deploy, we need a way to refresh all of
those instances with the new code (other than clicking "Refresh" in
AWS).  Terraform now does support this, as of version 3.22.

Their issue: hashicorp/terraform-provider-aws#13785
The pull request: hashicorp/terraform-provider-aws#16678
The changelog: https://github.com/hashicorp/terraform-provider-aws/blob/v3.22.0/CHANGELOG.md

Use this new version of the Terraform AWS provider so that we can use
autoscaling.
  • Loading branch information
cecilia-donnelly committed Jan 20, 2021
1 parent cb1c294 commit 0f421ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion instances/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 3.22"
}
}
backend "remote" {
Expand Down
2 changes: 1 addition & 1 deletion instances/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 3.22"
}
}
backend "remote" {
Expand Down
2 changes: 1 addition & 1 deletion instances/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 3.22"
}
}
backend "remote" {
Expand Down

0 comments on commit 0f421ab

Please sign in to comment.