Skip to content

[Feature Request] Add data source for MongoDB engine versions #3924

@jremy42

Description

@jremy42

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Please add a data source for available MongoDB major engine versions based on ListVersions.

This avoids hardcoding version strings in modules and allows reading end_of_life_at for lifecycle planning.

New or Affected Resource(s)

  • scaleway_mongodb_versions (new data source)

Potential Terraform Configuration

data "scaleway_mongodb_versions" "available" {
  region  = "fr-par"
  version = "7"
}

locals {
  selected_version = data.scaleway_mongodb_versions.available.versions[0].version
}

resource "scaleway_mongodb_instance" "main" {
  name    = "example-mongo"
  version = local.selected_version
  # ...
}

References

  • MongoDB API operation: ListVersions

Metadata

Metadata

Assignees

Labels

mongodbMongoDB issues, bugs and feature requestspriority:lowLow priority such as UX improvements and esthetics

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions