terraform-aws-components icon indicating copy to clipboard operation
terraform-aws-components copied to clipboard

An argument named "db_name" is not expected here.

Open nicolas-gagnon opened this issue 2 years ago • 4 comments

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

I try to repush some code not event on the rds and i receive this error

Error: Unsupported argument

830 |   831 | on .terraform/modules/rds_instance/main.tf line 31, in resource "aws_db_instance" "default": 832 | 31: db_name = var.database_name

Expected Behavior

I change the version of the cloudposse to the recent one same problame

Steps to Reproduce

when i do an plan i receive this error.

Screenshots

Environment (please complete the following information):

im using aws and a remote tf file on s8 bucket

nicolas-gagnon avatar Aug 23 '22 14:08 nicolas-gagnon

Hey @nicolas-gagnon, what are you planning when this happens, which component (modules/*)?

Benbentwo avatar Aug 29 '22 15:08 Benbentwo

This should not be a problem with modules/rds. Is that what you are using?

Nuru avatar Oct 11 '22 21:10 Nuru

@nicolas-gagnon friendly ping on the above questions -- wondering if this is still an issue or if we should close it out?

Gowiem avatar Nov 20 '22 00:11 Gowiem

I have a similar issue running a recursive validate script:

│ Error: Unsupported argument
│ 
│   on some.tf line 77, in resource "aws_db_instance" "main":
│   77:   db_name                     = var.database_name
│ 
│ An argument named "db_name" is not expected here.

decoded4620 avatar May 20 '24 22:05 decoded4620