You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we look in the cloudformation docs for the log group resource, we see these allowed values in the retentionInDays field:
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.
However when I try to use value 2557 in a cloudformation template, I get an error:
Model validation failed (#/RetentionInDays: #: only 1 subschema matches out of 2)
#/RetentionInDays: failed validation constraint for keyword [enum] (#/RetentionInDays)
If we look in the source to see the actual schema, we see (for example) that 2557 does not appear in the list.
"description": "The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.",
"type": "integer",
"enum": [
1,
3,
5,
7,
14,
30,
60,
90,
120,
150,
180,
365,
400,
545,
731,
1827,
3653
]
},
When I use the AWS console I can successfully choose 2557 (or rather, seven years). So it seems the schema in this repository is missing some entries.
The text was updated successfully, but these errors were encountered:
If we look in the cloudformation docs for the log group resource, we see these allowed values in the
retentionInDays
field:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html
However when I try to use value
2557
in a cloudformation template, I get an error:If we look in the source to see the actual schema, we see (for example) that
2557
does not appear in the list.aws-cloudformation-resource-providers-logs/aws-logs-loggroup/aws-logs-loggroup.json
Lines 44 to 66 in 19f04fe
When I use the AWS console I can successfully choose
2557
(or rather, seven years). So it seems the schema in this repository is missing some entries.The text was updated successfully, but these errors were encountered: