Skip to main content

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

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:30.308417241Z 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 Bundle​

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

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
# Execute tests
repo-manager 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: "Reissue the certificate before it expires."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 7
arg:
EXTRACT: CA10__notAfter__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "The certificate is not expiring within 7 days."