Hi there,
Terraform Version
terraform -v
Terraform v0.9.2
Affected Resource(s)
Terraform Configuration Files
resource "aws_db_subnet_group" "db_subnet_group" {
name_prefix = "something"
subnet_ids = ...
tags {
...
}
}
Expected Behavior
When trying to run terraform plan I was expecting that the plan will show the aws_db_subnet_group creation, however I get a unexpected error.
Actual Behavior
I get the following error:
* module.db.aws_db_subnet_group.db_subnet_group: "name": required field is not set
* module.db.aws_db_subnet_group.db_subnet_group: : invalid or unknown key: name_prefix
Based on the documentation name and name_prefix are optional, however the error implies that name is required and name_prefix is invalid.
Steps to Reproduce
terraform plan