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

terraform plan causes unsupported argument errors #995

Closed
pli888 opened this issue Mar 21, 2022 · 1 comment
Closed

terraform plan causes unsupported argument errors #995

pli888 opened this issue Mar 21, 2022 · 1 comment

Comments

@pli888
Copy link
Member

pli888 commented Mar 21, 2022

Executing $ AWS_PROFILE=Gigadb terraform plan to deploy an upstream live environment causes the errors below:

│ Error: Unsupported argument
│ 
│   on ../../modules/rds-instance/rds-instance.tf line 31, in module "db":
│   31:   name                   = var.gigadb_db_database
│ 
│ An argument named "name" is not expected here.
╵
╷
│ Error: Unsupported argument
│ 
│   on ../../modules/rds-instance/rds-instance.tf line 54, in module "db":
│   54:   final_snapshot_identifier = "snapshot-final-${var.deployment_target}-${var.owner}-${local.tstamp}"
│ 
│ An argument named "final_snapshot_identifier" is not expected here.

Looks like this is caused by the use of terraform-aws-modules/rds/aws version 4.2.0 in my upstream live environment whereas we have been using version 3.5.0 which does not have this problem. The fix to the above problems are to use db_name = var.gigadb_db_database and final_snapshot_identifier_prefix = "snapshot-final-${var.deployment_target}-${var.owner}-${local.tstamp}” in rds-instance.tf.

@rija
Copy link
Contributor

rija commented Feb 28, 2024

Fixed two years ago with PR #1001, so closing

@rija rija closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants