Skip to content

Conversation

@Mia-Cross
Copy link
Contributor

@Mia-Cross Mia-Cross commented Aug 6, 2025

This PR introduces a new data source instance_server_type which will allow users to read the specifications of a given server type and use the values for configuration.

For now, the information is fetched from the Instance API (except for the pricing), but we should consider reading it from the PCU as soon as it becomes available.
Some specs have been deliberately omitted :

  • ipv6_support: is always true for every server type.
  • capabilities.private_network (the number of PN allowed): not available in the sdk-go
  • capabilities.placement_groups: not available in the sdk-go, but is always true for every server type
  • capabilities.hot_snapshots_local_volume: not available in the sdk-go

Left to-do:

  • Write the documentation page
  • Resolve TODOs

Closes #2512

@Mia-Cross Mia-Cross self-assigned this Aug 6, 2025
@Mia-Cross Mia-Cross added enhancement instance Instance issues, bugs and feature requests priority:high New features labels Aug 6, 2025
@Mia-Cross Mia-Cross force-pushed the instance_server_type_data_source branch 2 times, most recently from 51dfbaa to 471a987 Compare August 6, 2025 13:59
@Mia-Cross Mia-Cross force-pushed the instance_server_type_data_source branch 2 times, most recently from ebf7deb to 5dbe6f2 Compare September 29, 2025 23:35
@Mia-Cross Mia-Cross force-pushed the instance_server_type_data_source branch from 5dbe6f2 to 4ba763a Compare September 30, 2025 08:20
@Mia-Cross Mia-Cross marked this pull request as ready for review September 30, 2025 08:26
@Mia-Cross Mia-Cross requested review from a team and remyleone as code owners September 30, 2025 08:26
@remyleone remyleone added this pull request to the merge queue Oct 3, 2025
Merged via the queue into scaleway:master with commit 76785cb Oct 3, 2025
48 checks passed
@Mia-Cross Mia-Cross deleted the instance_server_type_data_source branch October 6, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement instance Instance issues, bugs and feature requests priority:high New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add several data sources to ease automation

2 participants