2021-09-08 10:22:33 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
|
|
|
|
== Sensitive Code Example
|
|
|
|
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_file_system[aws_efs_file_system]:
|
|
|
|
|
2022-03-25 15:29:23 +01:00
|
|
|
[source,terraform]
|
2021-09-08 10:22:33 +02:00
|
|
|
----
|
|
|
|
resource "aws_efs_file_system" "fs" { # Sensitive, encryption disabled by default
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_file_system[aws_efs_file_system]:
|
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,terraform]
|
2021-09-08 10:22:33 +02:00
|
|
|
----
|
|
|
|
resource "aws_efs_file_system" "fs" {
|
|
|
|
encrypted = true
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
include::../see.adoc[]
|
2022-03-25 15:29:23 +01:00
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== Message
|
|
|
|
|
|
|
|
* Make sure that using unencrypted EFS file system is safe here.
|
|
|
|
* Omitting "encrypted" disables EFS file system encryption. Make sure it is safe here.
|
|
|
|
|
2022-03-25 15:29:23 +01:00
|
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|