You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: expected export_data_options.0.time_frame to be one of [Custom BillingMonthToDate TheLastBillingMonth TheLastMonth WeekToDate MonthToDate], got TheLastWeek
│
│ with module.logging_policies.azurerm_subscription_cost_management_export.video_cloud_weekly,
│ on ..\modules\logging-policies\main.tf line 150, in resource "azurerm_subscription_cost_management_export""video_cloud_weekly":
│ 150: time_frame = "TheLastWeek"
│
Expected Behaviour
Expect to create a cost management export with export type "Weekly export of last 7 days"
Actual Behaviour
Documentation mentions TheLastWeek should be a value for time_frame. However terraform plan fails when this value is provided.
Hi @thaliegf thanks for opening the issue! The value in the document is actually wrong and should be TheLast7Days. Plus, this value is not in the Azure API swagger definition which is being tracked by Azure/azure-rest-api-specs#23707 thus it was not added to the provider code as well. I've opened #21528 to add the new option TheLast7Days
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.5
AzureRM Provider Version
3.53.0
Affected Resource(s)/Data Source(s)
azurerm_subscription_cost_management_export
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Expect to create a cost management export with export type "Weekly export of last 7 days"
Actual Behaviour
Documentation mentions TheLastWeek should be a value for time_frame. However terraform plan fails when this value is provided.
![image](https://user-images.githubusercontent.com/98189369/234073023-d10673a5-7835-4209-80f8-70597f609ba8.png)
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/billing_account_cost_management_export
Steps to Reproduce
terraform plan
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: