-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Savings plan creation and import does not work #798
Comments
Hello @karatekaneen, in fact the flavor needs to be uppercased, so this is the cause of the issue you're encountering. I just ran the following plan that works: resource "ovh_savings_plan" "savings_plan" {
service_name = "redacted"
flavor = "B3-8"
period = "P1M"
auto_renewal = true
display_name = "dtrack_savings_plan_1m"
size = 1
} I understand that it is not obvious, so I'll state this requirement in the documentation. |
@amstuta Nice, thank you! I't will solve my problem next month when I'm able to create a new one. However, the flavor is lowercase everywhere else in both price lists and when running |
I agree, but the only thing we can do on provider side is to force uppercase when creating a savings plan. I'm adding this to the resource so your original plan with lowercased flavor will work. |
Describe the bug
I can't create savings plan via terraform or import it from the UI.
Terraform Version
1.10.4
OVH Terraform Provider Version
Affected Resource(s)
Terraform Configuration Files
Note this works fine when running
terraform plan
, it fails when applying.Debug Output
It gave the following error
Expected Behavior
I want to create a savings plan via terraform, if that does not work i want to be able to import one.
Actual Behavior
I first tried to create a savings plan via Terraform with the file provided above and it gave the error. When that didn't work I tried to import it as it's explained in the documentation by running:
NOTE: the ID was really hard to find in the UI, had to look at the network logs to figure it out
The import didn't give any errors but when I run
terraform plan
i get the following output:Additional context
When running
terraform show
this is the relevant output, anonymized.Note that
flavor
,period
andservice_name
is missing.So, am I missing something fundamental or is this a bug?
The text was updated successfully, but these errors were encountered: