π§ AWS CloudFront Web Distribution uses Dedicated IP for SSL - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS CloudFront Distribution
- π AWS CloudFront Distribution - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:35.466815147Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/policy.yaml | 71950FE1911A6C4363EF0826B5A7B826 |
| Open | /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/prod.logic.yaml | 6C79F9B468C55A90658D59F1DCE52C7C |
| Open | /ce/ca/aws/cloudfront/distribution-uses-dedicated-ip/test-data.json | 87D1C11005378C226D0355AE598BA317 |
| Open | /types/CA10__CaAwsDistribution__c/object.extracts.yaml | 9BBABDA14FE5FD983E28F77F5CC80BF9 |
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β
---
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."