For the complete documentation index, see llms.txt. This page is also available as Markdown.
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

  • } }


Last updated

Was this helpful?