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
Community Note
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_atfor lifecycle planning.New or Affected Resource(s)
scaleway_mongodb_versions(new data source)Potential Terraform Configuration
References
ListVersions