
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
44 lines
906 B
Plaintext
44 lines
906 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue[aws_sqs_queue]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_sqs_queue" "queue" { # Sensitive, encryption disabled by default
|
|
name = "sqs-unencrypted"
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue[aws_sqs_queue]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_sqs_queue" "queue" {
|
|
name = "sqs-encrypted"
|
|
kms_master_key_id = aws_kms_key.enc_key.key_id
|
|
}
|
|
----
|
|
|
|
include::../see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
* Omitting "kms_master_key_id" disables SQS queues encryption. Make sure it is safe here.
|
|
|
|
|
|
endif::env-github,rspecator-view[] |