Using azurerm cost management export without a dynamic start and end date issues

Ahoy,

I’m attempting to use the azurerm_cost_management_export_resouce_group provider.

My template is as such:

resource “azurerm_cost_management_export_resource_group” “cost-management-export” {
name = “#{department}##{environment}#CostInfoDump
resource_group_id = azurerm_resource_group.resource_group.id
recurrence_type = “Daily”
recurrence_period_start = “2020-08-13T00:00:00Z”
recurrence_period_end = “2020-09-13T00:00:00Z”

delivery_info {
storage_account_id = azurerm_storage_account.working-storage_account.id
container_name = “cost”
root_folder_path = “dump”
}

query {
type = “Usage”
time_frame = “WeekToDate”
}
depends_on = [azurerm_resource_group.resource_group]
}

the goal is to enable daily dumps and it works fine when i edit the date and run it the first time.

Request properties validation failed: Invalid schedule recurrencePeriod; ‘from’ value cannot be in the past.

And that makes sense since the date is hardcoded. Is there any way to set this up so that it just keeps doing what it’s doing after the first run and doesn’t need have the date dynamically change everytime there’s a new run of the code?