hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

Need DLM polices would use age how we can achieve that #27290

Open pradeep1505 opened 1 year ago

pradeep1505 commented 1 year ago

we would like to update the retention policy from count of 7 daily snapshots to age to expire after 7 days. can you provide us any reference that needs to be updated.

policy_details { resource_types = ["VOLUME"]

schedule {
  name = "${var.dlm_retain} days of daily snapshots"

  create_rule {
    interval      = 24
    interval_unit = "HOURS"
    times         = ["00:00"]
  }

  retain_rule {
    count = var.dlm_retain
  }

  tags_to_add = {
    SnapCreator = "DLM"
  }

  copy_tags = true
}

References

No response

Would you like to implement a fix?

Yes

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue