Skip to content

[Bug]: Error: only alphanumeric characters and hyphens allowed in "name" #38165

Description

@EugenKon

Terraform Core Version

I do not remember already

AWS Provider Version

probably this happened on v4.67

Affected Resource(s)

  • aws_db_event_subscription

Expected Behavior

No error should be reported, because the name has only alphanumeric characters.

Actual Behavior

Error: only alphanumeric characters and hyphens allowed in "name"

Relevant Error/Panic Output Snippet

terraform plan
╷
│ Error: only alphanumeric characters and hyphens allowed in "name"
│
│   with aws_db_event_subscription.db_event_subs,
│   on rds.tf line 81, in resource "aws_db_event_subscription" "db_event_subs":
│   81:   name      = "db_event_subs"

Terraform Configuration Files

resource "aws_db_event_subscription" "db_event_subs" {
  name      = "db_event_subs"  << line 81
  sns_topic = aws_sns_topic.rds-events.arn

  source_type = "db-instance"
  source_ids  = [aws_db_instance.postgres_v15.identifier]

  event_categories = [
    "backup",
    "maintenance",
    "low storage",
    "failure",
  ]
}

Steps to Reproduce

terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/rdsIssues and PRs that pertain to the rds service.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions