Control: Glue jobs bookmarks encryption should be enabled
Description
Ensure Glue job bookmarks have encryption enabled to protect sensitive information at rest.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.glue_job_bookmarks_encryption_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.glue_job_bookmarks_encryption_enabled --shareSQL
This control uses a named query:
select  j.arn as resource,  case    when job_bookmarks_encryption is not null and job_bookmarks_encryption ->> 'JobBookmarksEncryptionMode' != 'DISABLED' then 'ok'    else 'alarm'  end as status,  case    when job_bookmarks_encryption is not null and job_bookmarks_encryption ->> 'JobBookmarksEncryptionMode' != 'DISABLED' then j.title || ' job bookmarks encryption enabled.'    else j.title || ' job bookmarks encryption disabled.'  end as reason  , j.region, j.account_idfrom  aws_glue_job as j  left join aws_glue_security_configuration as c on j.security_configuration = c.name;