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

feat: added test for DynamoDB table #38

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/features.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Features

## S3 Bucket

- [[S3.2] S3 buckets should prohibit public read access](https://docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-2)
- [[S3.3] S3 buckets should prohibit public write access](https://docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-3)
- [[S3.4] S3 buckets should have server-side encryption enabled](https://docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-4)
Expand All @@ -8,3 +10,7 @@
- A lifecycle policy for non-current versions of objects
[[S3.10] S3 buckets with versioning enabled should have lifecycle policies configured](https://docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-10)
- Enforcing that the bucket owner owns every object in the bucket.

## DynamoDB Table

- [[DynamoDB.2] DynamoDB tables should have point-in-time recovery enabled](https://docs.aws.amazon.com/securityhub/latest/userguide/dynamodb-controls.html#dynamodb-2)
11 changes: 11 additions & 0 deletions test/terraformStateBackend.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,15 @@ describe('DynamoDB Configuration', () => {
},
);
});

test('[DynamoDB.2] DynamoDB tables should have point-in-time recovery enabled', () => {
assertions.Template.fromStack(stack).hasResourceProperties(
'AWS::DynamoDB::Table',
{
PointInTimeRecoverySpecification: {
PointInTimeRecoveryEnabled: true,
},
},
);
});
});