│ Error: Unsupported argument
│
│ on .terraform/modules/rds_instance/main.tf line 31, in resource "aws_db_instance" "default":
│ 31: db_name = var.database_name
│
│ An argument named "db_name" is not expected here.
whether or not the database_name is specified or not
Describe the Bug
Trying to create an MSSQL RDS gives terraform error in hashistack aws_db_instance code.
Expected Behavior
Module can create Amazon RDS Custom for SQL Server instance
Steps to Reproduce
Try to create module as follows:
This gives the following :
whether or not the
database_name
is specified or notAdditional Context
Looking at the AWS documentation at https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/create-db-instance.html, we see: