Control: DynamoDB table should have deletion protection enabled
Description
This control checks whether an Amazon DynamoDB table has deletion protection enabled. The control fails if a DynamoDB table doesn't have deletion protection enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.dynamodb_table_deletion_protection_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.dynamodb_table_deletion_protection_enabled --share
SQL
This control uses a named query:
select arn as resource, case when deletion_protection_enabled then 'ok' else 'alarm' end as status, case when deletion_protection_enabled then title || ' deletion protection enabled.' else title || ' deletion protection disabled.' end as reason , region, account_idfrom aws_dynamodb_table;