wellcomecollection / platform-infrastructure

:building_construction: Infrastructure for the Wellcome Digital Platform
MIT License
24 stars 8 forks source link

Fix logging cluster ILM policies #442

Closed StepanBrychta closed 2 months ago

StepanBrychta commented 3 months ago

What's changing and why?

This modifies the delete policy on APM trace indices to make sure they get deleted 1 day after rollover. See this thread for more info

terraform plan diff

Terraform will perform the following actions:

  # elasticstack_elasticsearch_index_lifecycle.apm_traces will be updated in-place
  ~ resource "elasticstack_elasticsearch_index_lifecycle" "apm_traces" {
        id            = "J6V5gvONTve393_OJiiJnA/weco-traces-apm"
        name          = "weco-traces-apm"
        # (1 unchanged attribute hidden)

      ~ delete {
            # (1 unchanged attribute hidden)

          + delete {
              + delete_searchable_snapshot = true
            }
        }

        # (1 unchanged block hidden)
    }

  # elasticstack_elasticsearch_index_lifecycle.apm_traces_rum will be updated in-place
  ~ resource "elasticstack_elasticsearch_index_lifecycle" "apm_traces_rum" {
        id            = "J6V5gvONTve393_OJiiJnA/weco-traces-apm-rum"
        name          = "weco-traces-apm-rum"
        # (1 unchanged attribute hidden)

      ~ delete {
            # (1 unchanged attribute hidden)

          + delete {
              + delete_searchable_snapshot = true
            }
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.