Cortex CloudApplication Security
Ensure AWS API gateway enables Create before Destroy misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AWS_237
Category - Subcategory
Compute - Unsanctioned Resource Or Type
Provider
AWS
Severity
LOW
Framework
Terraform
Impact
It is recommended to enable create_before_destroy argument inside the resource lifecycle configuration block to avoid a possible outage when the API Gateway needs to be recreated during an update.
How to Fix
[source,go]
resource "aws_api_gateway_rest_api" "example" { name = "example"
lifecycle {
create_before_destroy = true
} }
PreviousAWS ACM certificate does not enable Create before Destroy misconfiguration detected in code
NextAWS HTTP and HTTPS target groups do not define health check misconfiguration detected in code
Last updated
Was this helpful?
