vantage-sh / terraform-provider-vantage

Terraform Modules for integrating AWS with Vantage
https://registry.terraform.io/modules/vantage-sh/vantage-integration/aws/latest
MIT License
7 stars 4 forks source link

fix: Don't set dates when date interval is not custom. #69

Closed igeagonz closed 1 month ago

igeagonz commented 1 month ago

Paired on this with @whereandy.

What does this fix? When trying to patch a cost report resource's date_interval, the start_date and end_date are being included because they are part of the TF state. This results in the API overwriting the provided date_interval field with the value custom. Incompatibility is mentioned in the API docs.