Control: FSx file system should be protected by backup plan
Description
Checks if AWS FSx File Systems are protected by a backup plan. The rule is non-compliant if the AWS FSx File System is not covered by a backup plan.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.fsx_file_system_protected_by_backup_plan
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.fsx_file_system_protected_by_backup_plan --share
SQL
This control uses a named query:
with backup_protected_fsx_file_system as ( select resource_arn as arn from aws_backup_protected_resource as b where resource_type = 'FSx')select f.arn as resource, case when b.arn is not null then 'ok' else 'alarm' end as status, case when b.arn is not null then f.title || ' is protected by backup plan.' else f.title || ' is not protected by backup plan.' end as reason , f.region, f.account_idfrom aws_fsx_file_system as f left join backup_protected_fsx_file_system as b on f.arn = b.arn;