Skip to content

module.db.aws_db_subnet_group.db_subnet_group: "name": required field is not set #13619

@dgolja

Description

@dgolja

Hi there,

Terraform Version

terraform -v
Terraform v0.9.2

Affected Resource(s)

  • aws_db_subnet_group

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

  1. terraform plan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions