61 lines
1.2 KiB
Plaintext
61 lines
1.2 KiB
Plaintext
![]() |
include::../rule.adoc[]
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
For https://aws.amazon.com/api-gateway/[Amazon API Gateway]:
|
||
|
|
||
|
----
|
||
|
resource "aws_api_gateway_domain_name" "example" {
|
||
|
domain_name = "api.example.com"
|
||
|
security_policy = "TLS_1_0" # Noncompliant
|
||
|
}
|
||
|
----
|
||
|
|
||
|
----
|
||
|
resource "aws_apigatewayv2_domain_name" "example" {
|
||
|
domain_name = "api.example.com"
|
||
|
domain_name_configuration {} # Noncompliant
|
||
|
}
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
For https://aws.amazon.com/api-gateway/[Amazon API Gateway]:
|
||
|
|
||
|
----
|
||
|
resource "aws_api_gateway_domain_name" "example" {
|
||
|
domain_name = "api.example.com"
|
||
|
security_policy = "TLS_1_2"
|
||
|
}
|
||
|
----
|
||
|
|
||
|
----
|
||
|
resource "aws_apigatewayv2_domain_name" "example" {
|
||
|
domain_name = "api.example.com"
|
||
|
domain_name_configuration {
|
||
|
security_policy = "TLS_1_2"
|
||
|
}
|
||
|
}
|
||
|
----
|
||
|
|
||
|
include::../see.adoc[]
|
||
|
* https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-custom-domain-tls-version.html[Amazon API Gateway] - Choosing a minimum TLS version
|
||
|
|
||
|
|
||
|
ifdef::env-github,rspecator-view[]
|
||
|
|
||
|
'''
|
||
|
== Implementation Specification
|
||
|
(visible only on this page)
|
||
|
|
||
|
include::../message.adoc[]
|
||
|
|
||
|
include::highlighting.adoc[]
|
||
|
|
||
|
'''
|
||
|
== Comments And Links
|
||
|
(visible only on this page)
|
||
|
|
||
|
include::../comments-and-links.adoc[]
|
||
|
endif::env-github,rspecator-view[]
|