
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.
42 lines
975 B
Plaintext
42 lines
975 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/sagemaker_notebook_instance[aws_sagemaker_notebook_instance]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_sagemaker_notebook_instance" "notebook" { # Sensitive, encryption disabled by default
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sagemaker_notebook_instance[aws_sagemaker_notebook_instance]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_sagemaker_notebook_instance" "notebook" {
|
|
kms_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_key_id" disables encryption of SageMaker notebook instances. Make sure it is safe here.
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|