terraform-aws-elasticache-redis icon indicating copy to clipboard operation
terraform-aws-elasticache-redis copied to clipboard

Error: Unsupported argument

Open judetrimble opened this issue 1 year ago • 1 comments
trafficstars

Describe the Bug

[terragrunt] 2024/06/13 08:53:58 Running command: terraform plan Releasing state lock. This may take a few moments...

Error: Unsupported argument

on main.tf line 55, in resource "aws_elasticache_replication_group" "default": 55: replication_group_description = module.this.id

An argument named "replication_group_description" is not expected here.

Error: Unsupported argument

on main.tf line 57, in resource "aws_elasticache_replication_group" "default": 57: number_cache_clusters = var.cluster_mode_enabled ? null : var.cluster_size

An argument named "number_cache_clusters" is not expected here.

Error: Unsupported argument

on main.tf line 60, in resource "aws_elasticache_replication_group" "default": 60: availability_zones = length(var.availability_zones) == 0 ? null : [for n in range(0, var.cluster_size) : element(var.availability_zones, n)]

An argument named "availability_zones" is not expected here.

Error: Unsupported block type

on main.tf line 80, in resource "aws_elasticache_replication_group" "default": 80: dynamic "cluster_mode" {

Blocks of type "cluster_mode" are not expected here.

[terragrunt] 2024/06/13 08:54:12 Hit multiple errors: exit status 1

Expected Behavior

the above should no occur

Steps to Reproduce

Using this module : https://github.com/cloudposse/terraform-aws-elasticache-redis.git//?ref=0.40.3

Terraform v0.13.7

Screenshots

No response

Environment

No response

Additional Context

No response

judetrimble avatar Jun 13 '24 09:06 judetrimble

Seems like you're using an old version of the aws provider

nitrocode avatar Jun 22 '24 10:06 nitrocode