Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

retention is mandatory param at LogGroups #27

@fogfish

Description

@fogfish

Fail with error Missing required key 'retentionInDays' in params

new c3.logs.LogGroup(stack, 'MyLogs', {
  kmsKey,
  logGroupName: 'MyLogs',
  removalPolicy,
})

Ok:

new c3.logs.LogGroup(stack, 'MyLogs', {
  kmsKey,
  logGroupName: 'MyLogs',
  removalPolicy,
  retention: logs.RetentionDays.ONE_DAY,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions