Open dominiquedejaeger-liantis opened 2 years ago
I was able to work around this by using time_static
and time_offset
resources for my time_period
settings so that I don't have to update the start_date unless I want it to get recreated.
resource "time_static" "budget_start_date" {
triggers = {
budget_enabled = var.azure_billing_budget_enabled
...
}
}
resource "time_offset" "budget_end_date" {
offset_years = 100
triggers = {
budget_enabled = var.azure_billing_budget_enabled
...
}
}
resource "azurerm_consumption_budget_subscription" "cb" {
time_period {
start_date = formatdate("YYYY-MM-01'T'00:00:00'Z'",time_static.budget_start_date.rfc3339)
end_date = formatdate("YYYY-MM-01'T'00:00:00'Z'",time_offset.budget_end_date.rfc3339)
}
...
}
Is there an existing issue for this?
Community Note
Terraform Version
1.0.0
AzureRM Provider Version
3.0.0
Affected Resource(s)/Data Source(s)
azurerm_consumption_budget_resource_group
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
no recreate but time_period is within ignore_changes
Actual Behaviour
terraform plan does recreate
Steps to Reproduce
No response
Important Factoids
No response
References
No response