FuelLabs / infrastructure

Shared infrastructure templates for Fuel services
15 stars 13 forks source link

Setup Automated Backups for AWS OpenSearch #60

Closed rfuelsh closed 8 months ago

rfuelsh commented 1 year ago
rfuelsh commented 1 year ago

policy add - logs are indefinite in cloudwatch

{
    "policy": {
        "policy_id": "cleanup-every-30-days",
        "description": "cleanup-every-30-days",
        "default_state": "hot",
        "states": [
            {
                "name": "hot",
                "actions": [],
                "transitions": [
                    {
                        "state_name": "delete",
                        "conditions": {
                            "min_index_age": "30d"
                        }
                    }
                ]
            },
            {
                "name": "delete",
                "actions": [
                    {
                        "delete": {}
                    }
                ],
                "transitions": []
            }
        ],
        "ism_template": [
            {
                "index_patterns": [
                    "cwl*"
                ],
                "priority": 100
            }
        ]
    }
}