
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.
43 lines
905 B
Plaintext
43 lines
905 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/sns_topic[aws_sns_topic]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_sns_topic" "topic" { # Sensitive, encryption disabled by default
|
|
name = "sns-unencrypted"
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic[aws_sns_topic]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_sns_topic" "topic" {
|
|
name = "sns-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 SNS topics encryption. Make sure it is safe here.
|
|
|
|
|
|
endif::env-github,rspecator-view[] |