Feat/add datasource to query machine types (#968)

* feat(iaas): add datasource to query machine types

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

* review

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

* review

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

---------

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
This commit is contained in:
Mauritz Uphoff 2025-08-28 13:23:11 +02:00 committed by GitHub
parent 64787fff67
commit fedaf72b62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 662 additions and 0 deletions

View file

@ -136,6 +136,23 @@ func IaaSProviderConfig() string {
)
}
func IaaSProviderConfigWithBetaResourcesEnabled() string {
if IaaSCustomEndpoint == "" {
return `
provider "stackit" {
enable_beta_resources = true
default_region = "eu01"
}`
}
return fmt.Sprintf(`
provider "stackit" {
enable_beta_resources = true
iaas_custom_endpoint = "%s"
}`,
IaaSCustomEndpoint,
)
}
func IaaSProviderConfigWithExperiments() string {
if IaaSCustomEndpoint == "" {
return `