Skip to main content

🧠 AWS CloudFront Web Distribution uses Dedicated IP for SSL - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:35.466815147Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(setOfText(['caWebDistribution']).contains(RecordType.DeveloperName))βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__viewerCertificateCloudFrontDefaultCert__c') == trueβœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10__viewerCertificateSslSupportMethod__c') == 'vip'βœ”οΈ null
🟒test5βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/policy.yaml71950FE1911A6C4363EF0826B5A7B826
Open/ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml6C79F9B468C55A90658D59F1DCE52C7C
Open/ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/test-data.json87D1C11005378C226D0355AE598BA317
Open/types/CA10__CaAwsDistribution__c/object.extracts.yaml9BBABDA14FE5FD983E28F77F5CC80BF9

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsDistribution__c"
importExtracts:
- file: "/types/CA10__CaAwsDistribution__c/object.extracts.yaml"
testData:
- file: "test-data.json"
recordTypes:
- "caWebDistribution"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The CloudFront distribution is configured to use the default SSL/TLS certificate."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__viewerCertificateCloudFrontDefaultCert__c"
right:
BOOLEAN: true
- status: "INCOMPLIANT"
currentStateMessage: "The CloudFront distribution is configured to use a Dedicated IP address."
remediationMessage: "Change the SSL support method from Dedicated IP to Server Name Indication (SNI)."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__viewerCertificateSslSupportMethod__c"
right:
TEXT: "vip"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The CloudFront distribution is configured to use SNI-only for SSL support."