
Improvement identified in #2790. Add a prefix to the diff-id when it is used multiple times in different "how to fix it in XYZ" sections to avoid ambiguity and pedantically follow the spec: > A single and unique diff-id should be used only once for each type of code example as shown in the description of a rule.
28 lines
540 B
Plaintext
28 lines
540 B
Plaintext
== How to fix it in GCP Load Balancers
|
|
|
|
=== Code examples
|
|
|
|
==== Noncompliant code example
|
|
|
|
[source,terraform,diff-id=41,diff-type=noncompliant]
|
|
----
|
|
resource "google_compute_ssl_policy" "example" {
|
|
name = "example"
|
|
min_tls_version = "TLS_1_0" # Noncompliant
|
|
}
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,terraform,diff-id=41,diff-type=compliant]
|
|
----
|
|
resource "google_compute_ssl_policy" "example" {
|
|
name = "example"
|
|
min_tls_version = "TLS_1_2"
|
|
}
|
|
----
|
|
|
|
=== How does this work?
|
|
|
|
include::../../common/fix/fix.adoc[]
|