π§ AWS API Gateway API Access Logging in CloudWatch is not enabled - prod.logic.yamlπ π’
- Contextual name: π§ prod.logic.yamlπ π’
- ID:
/ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with test data
- π Logic without extracts
Usesβ
- π AWS API Gateway API
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:30.919983360Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ CA10__AWS_API_Gateway_Stages__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test3 | βοΈ 199 | βοΈ CA10__AWS_API_Gateway_Stages__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test4 | βοΈ 199 | βοΈ CA10__AWS_API_Gateway_Stages__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test5 | βοΈ 200 | βοΈ otherwise | βοΈ null |
| π’ | test6 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/apigateway/api-access-logging/policy.yaml | 27EB0EAEDBCF4B965C9DEB6AB46A20B3 |
| Open | /ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml | 1ABB2ACC246430536AF8AB2D9DFB22FD |
| Open | /ce/ca/aws/apigateway/api-access-logging/test-data.json | 80C72546B58BBFE5F161E6CFC7DED26B |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/apigateway/api-access-logging/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsApiGatewayRestApi__c"
testData:
- file: test-data.json
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "At least one API stage does not have CloudWatch access logs enabled."
remediationMessage: "Enable CloudWatch access logs for the API stage."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_API_Gateway_Stages__r"
status: "INCOMPLIANT"
otherwise:
status: "COMPLIANT"
currentStateMessage: "All API stages have CloudWatch access logs enabled."
relatedLists:
- relationshipName: "CA10__AWS_API_Gateway_Stages__r"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "CloudWatch access logs are not enabled for this API stage."
remediationMessage: "Enable CloudWatch access logs for this API stage."
check:
IS_EMPTY_LOOKUP: "CA10__accessLoggingDestination__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "CloudWatch access logs are enabled for this API stage."