Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument "storage_type" for aws_docdb_cluster is not expected with AWS provider < 5.29.0, Module Version 0.25.0 #86

Closed
abeleon-m1 opened this issue Feb 21, 2024 · 1 comment · Fixed by #103
Labels
bug 🐛 An issue with the system

Comments

@abeleon-m1
Copy link

Describe the Bug

Module version 0.25.0 allows for "storage_type" variable for aws_docdb_cluster. This is not supported by lower AWS providers. Version 5.29.0 required for this. https://registry.terraform.io/providers/hashicorp/aws/5.29.0/docs/resources/docdb_cluster

Fix requirements: https://github.com/cloudposse/terraform-aws-documentdb-cluster/blob/main/versions.tf#L7 or make optional.

Validation failed: modules/main
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/documentdb_cluster/main.tf line 72, in resource "aws_docdb_cluster" "default":
│   72:   storage_type                    = var.storage_type
│ 
│ An argument named "storage_type" is not expected here.

Expected Behavior

Allows for plan with lower AWS versions error

Steps to Reproduce

Pin an AWS version lower than 5.29.0 and attempt to plan with latest module (0.25.0).

Screenshots

No response

Environment

No response

Additional Context

No response

@abeleon-m1 abeleon-m1 added the bug 🐛 An issue with the system label Feb 21, 2024
@danieldrey
Copy link

So I can't use the storage_type parameter with a provider lower than 5.29?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
2 participants