Skip to main content

🧠 AWS ACM Certificate expires in the next 7 days - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS ACM CertificateCA10__CaAwsAcmCertificate__c514

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'ISSUED'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__renewalEligibility__c') != 'INELIGIBLE'βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10__notAfter__c').withinNextDays(7)βœ”οΈ null
🟒test5βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/acm/certificate-expires-in-7-days/policy.yaml28343019C083D93F4E1531FFD63AAC86
Open/ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml7D93C4B0816729C101BC343594613448
Open/ce/ca/aws/acm/certificate-expires-in-7-days/test-data.jsonEAEC25F87A3E816CE43AF203CD79CAAA
Open/types/CA10__CaAwsAcmCertificate__c/object.extracts.yamlD20EE095842A506CDEF3AC47E90A5A3B

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAcmCertificate__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsAcmCertificate__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The certificate is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ISSUED"
- status: "INAPPLICABLE"
currentStateMessage: "The certificate is eligible for automatic renewal."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__renewalEligibility__c"
right:
TEXT: "INELIGIBLE"
- status: "INCOMPLIANT"
currentStateMessage: "The certificate is ineligible for automatic renewal and expires in 7 days or less."
remediationMessage: "Consider reissuing the expiring certificate."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 7
arg:
EXTRACT: CA10__notAfter__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "The certificate is not expiring."