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
sam validate relies on cfn-lint. SAM currently uses 1.20.1. Current version with up to date CloudFormation schema is 1.22.4. Example use case is adding the new PointInTimeRecoverySpecification.RecoveryPeriodInDays property to a DynamoDB table resource. cfn-lint 1.22.4 validates the template. SAM 1.132.0 doesn't, giving the following error message (generated mostly by the out of date cfn-lint):
[[E3002: Resource properties are invalid] (Additional properties are not allowed ('RecoveryPeriodInDays' was unexpected)) matched 151]
Error: Linting failed. At least one linting rule was matched to the provided template.
Hi, thanks for reporting this. This validation error is occurring because your SAM CLI (v1.133.0) is using an outdated CloudFormation specification that doesn't recognize the RecoveryPeriodInDays property, which is a valid and relatively recent addition to DynamoDB tables. The simplest solution is to update your SAM CLI to the latest version (v1.135.0).
After updating, please try running sam validate again. The latest version should include updated CloudFormation specifications that recognize the RecoveryPeriodInDays property.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description:
sam validate
relies oncfn-lint
. SAM currently uses 1.20.1. Current version with up to date CloudFormation schema is 1.22.4. Example use case is adding the new PointInTimeRecoverySpecification.RecoveryPeriodInDays property to a DynamoDB table resource.cfn-lint
1.22.4 validates the template. SAM 1.132.0 doesn't, giving the following error message (generated mostly by the out of datecfn-lint
):#7827 Did not resolve the issue.
Steps to reproduce:
Add the following resource to an otherwise valid SAM template:
Run
sam validate
.Observed result:
Error message.
Expected result:
Passing validation.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
The text was updated successfully, but these errors were encountered: