Skip to main content

🧠 AWS API Gateway REST API Stage is not associated with a WAF Web ACL - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS API Gateway StageCA10__CaAwsApiGatewayStage__c313

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:44:21.775851205Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(['restApiStage'].contains(RecordType.DeveloperName))βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__webAclArn__c').isEmpty()βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/policy.yaml286AF65A6336EBDE5D6AF9767625E939
Open/ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml4D08B96ECB0A6C69151BDAB3D7E42196
Open/types/CA10__CaAwsApiGatewayStage__c/object.extracts.yamlBFC9531C779AD876E602BE4C7AFCAE82
Open/ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/test-data.json8B83F1AE712E9D2F7F9D7BB8103DFA6D

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsApiGatewayStage__c"
importExtracts:
- file: "/types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml"
testData:
- file: test-data.json
recordTypes:
- "restApiStage"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The stage is not associated with a WAF Web ACL."
remediationMessage: "Consider associating a WAF Web ACL with an API Gateway Stage"
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__webAclArn__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The stage is associated with a WAF Web ACL."