Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
AWS
Loading policies...

Policy: AWS > Logs > Log Group > Retention

Determine the action to take when an AWS Logs log group retention period is not configured according to the AWS > Logs > Log Group > Retention > * policies.

The control determines whether the log group has an appropriate retention period set, and if not, has the ability to update the retention period. When running an automated compliance environment, it's important to ensure log groups have appropriate retention periods to balance storage costs with compliance requirements.

The Retention control checks the retention period of all defined Retention policies for the resource (AWS > Logs > Log Group > Retention > *), raises an alarm, and takes the defined enforcement action. Each Retention sub-policy can calculate a status of compliant, non-compliant or skipped.

Targets

This policy targets the following resource types:

  • AWS > Logs > Log Group

Related Policies

  • Period

Controls

Setting this policy configures this control:

  • AWS > Logs > Log Group > Retention

Policy Specification

Schema Type
string
Default
Skip
Valid Values [YAML]
  • Skip
    
  • Check: Enabled per `Retention > Period`
    
  • Enforce: Enabled per `Retention > Period`
    
Examples [YAML]
  • Check: Enabled per `Retention > Period`
    

Category

  • Resource > Expiration

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/resourceExpiration
  • Policy Type URI
    • tmod:@turbot/aws-logs#/policy/types/logGroupRetention
  • GraphQL
    • query policyType(id: "tmod:@turbot/aws-logs#/policy/types/logGroupRetention") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/aws-logs#/policy/types/logGroupRetention'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/aws-logs#/policy/types/logGroupRetention'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/aws-logs#/policy/types/logGroupRetention"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/aws-logs#/policy/types/logGroupRetention"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
180
Mods
497
Resource Types
8,691
Policies
3,362
Controls
1,833
Quick Actions
540
IAM