Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default retentionDays value '730' for LogGroup is invalid #1343

Closed
sam-goodwin opened this issue Dec 12, 2018 · 0 comments · Fixed by #1344
Closed

Default retentionDays value '730' for LogGroup is invalid #1343

sam-goodwin opened this issue Dec 12, 2018 · 0 comments · Fixed by #1344
Assignees
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch bug This issue is a bug.

Comments

@sam-goodwin
Copy link
Contributor

Create fails if you instantiate a LogGroup with the default retentionDays value of 730:

const logGroup = new logs.LogGroup(this, 'Logs', {
   logGroupName: 'my-name',
});

Error message:
Invalid retention value. Valid values are: [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653]

It should be set to 731.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cloudwatch Related to Amazon CloudWatch bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant