-
Notifications
You must be signed in to change notification settings - Fork 52
/
sqs.sp
30 lines (26 loc) · 976 Bytes
/
sqs.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
locals {
foundational_security_sqs_common_tags = merge(local.foundational_security_common_tags, {
service = "AWS/SQS"
})
}
benchmark "foundational_security_sqs" {
title = "SQS"
documentation = file("./foundational_security/docs/foundational_security_sqs.md")
children = [
control.foundational_security_sqs_1
]
tags = merge(local.foundational_security_sqs_common_tags, {
type = "Benchmark"
})
}
control "foundational_security_sqs_1" {
title = "1 Amazon SQS queues should be encrypted at rest"
description = "This control checks whether Amazon SQS queues are encrypted at rest."
severity = "medium"
query = query.sqs_queue_encrypted_at_rest
documentation = file("./foundational_security/docs/foundational_security_sqs_1.md")
tags = merge(local.foundational_security_sqs_common_tags, {
foundational_security_item_id = "sqs_1"
foundational_security_category = "encryption_of_data_at_rest"
})
}