From 12e2047af9e74918730e7167686b09af35e784c3 Mon Sep 17 00:00:00 2001 From: KanchiMoe <5897898+KanchiMoe@users.noreply.github.com> Date: Fri, 7 Apr 2023 00:44:10 +0100 Subject: [PATCH] replication_group_description is deprecated (#11047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `replication_group_description` is a deprecated argument for `aws_elasticache_replication_group`. The replacement is `description`. Highlighted on this job: https://github.com/fleetdm/fleet/actions/runs/4613224383/jobs/8154983457#step:4:54 --- From: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_replication_group#argument-reference > `replication_group_description` – (Deprecated use `description` instead) User-created description for the replication group. Must not be empty. --- infrastructure/loadtesting/terraform/redis.tf | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/infrastructure/loadtesting/terraform/redis.tf b/infrastructure/loadtesting/terraform/redis.tf index a2614b9f21..f631ef04d5 100644 --- a/infrastructure/loadtesting/terraform/redis.tf +++ b/infrastructure/loadtesting/terraform/redis.tf @@ -1,20 +1,20 @@ resource "aws_elasticache_replication_group" "default" { - availability_zones = ["us-east-2a", "us-east-2b", "us-east-2c"] - engine = "redis" - parameter_group_name = aws_elasticache_parameter_group.default.id - subnet_group_name = data.terraform_remote_state.shared.outputs.vpc.elasticache_subnet_group_name - security_group_ids = [aws_security_group.redis.id, aws_security_group.backend.id] - replication_group_id = "${local.prefix}-redis" - num_cache_clusters = 3 - node_type = var.redis_instance_type - engine_version = "5.0.6" - port = "6379" - snapshot_retention_limit = 0 - automatic_failover_enabled = true - at_rest_encryption_enabled = false #tfsec:ignore:aws-elasticache-enable-at-rest-encryption - transit_encryption_enabled = false #tfsec:ignore:aws-elasticache-enable-in-transit-encryption - apply_immediately = true - replication_group_description = "${local.prefix}-redis" + availability_zones = ["us-east-2a", "us-east-2b", "us-east-2c"] + engine = "redis" + parameter_group_name = aws_elasticache_parameter_group.default.id + subnet_group_name = data.terraform_remote_state.shared.outputs.vpc.elasticache_subnet_group_name + security_group_ids = [aws_security_group.redis.id, aws_security_group.backend.id] + replication_group_id = "${local.prefix}-redis" + num_cache_clusters = 3 + node_type = var.redis_instance_type + engine_version = "5.0.6" + port = "6379" + snapshot_retention_limit = 0 + automatic_failover_enabled = true + at_rest_encryption_enabled = false #tfsec:ignore:aws-elasticache-enable-at-rest-encryption + transit_encryption_enabled = false #tfsec:ignore:aws-elasticache-enable-in-transit-encryption + apply_immediately = true + description = "${local.prefix}-redis" }