terraform,

Terraform 'The argument replication_group_description is required, but no definition was found.'

Jun 01, 2023 · 1 min read · Post a comment

While creating a new Redis instance I got the following error: The argument "replication_group_description" is required, but no definition was found.

Prerequisites

  • Terraform
  • sudo privileges

Solution

It turned out that the replication_group_description is deprecated and needs to be replaced with the description variable. So you will have to get rid of replication_group_description and replace it with description.

main.tf

resource "aws_elasticache_replication_group" "main" {
  replication_group_id          = var.name
  description                   = var.description
...

variables.tf

...
variable "description" {
description = "Description for the elastiCache replication group"
type        = string
}
...

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.