/
appflow.sp
35 lines (28 loc) · 1.18 KB
/
appflow.sp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
locals {
appflow_compliance_common_tags = merge(local.terraform_aws_compliance_common_tags, {
service = "AWS/AppFlow"
})
}
benchmark "appflow" {
title = "AppFlow"
description = "This benchmark provides a set of controls that detect Terraform AWS AppFlow resources deviating from security best practices."
children = [
control.appflow_connector_profile_encrypted_with_kms_cmk,
control.appflow_flow_encrypted_with_kms_cmk
]
tags = merge(local.appflow_compliance_common_tags, {
type = "Benchmark"
})
}
control "appflow_flow_encrypted_with_kms_cmk" {
title = "AppFlow Flow should be encrypted with KMS CMK"
description = "This control checks whether AppFlow Flow is encrypted with KMS CMK."
query = query.appflow_flow_encrypted_with_kms_cmk
tags = local.appflow_compliance_common_tags
}
control "appflow_connector_profile_encrypted_with_kms_cmk" {
title = "AppFlow Connector Profile should be encrypted with KMS CMK"
description = "This control checks whether AppFlow Connector Profile is encrypted with KMS CMK."
query = query.appflow_connector_profile_encrypted_with_kms_cmk
tags = local.appflow_compliance_common_tags
}