π§ AWS ECS Fargate Service platform version is outdated - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS ECS Service
- π AWS ECS Task - object.extracts.yaml
- π AWS ECS Service - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-11-07T12:03:51.113474095Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | test3 | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | test4 | βοΈ 199 | βοΈ extract('CA10__status__c') != 'ACTIVE' | βοΈ null |
| π’ | test5 | βοΈ 599 | βοΈ setOfText(['1.1.0', '1.2.0', '1.3.0']).contains(extract('CA10__platformVersion__c')) | βοΈ null |
| π’ | test6 | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | capacity-provider-no-service-platform | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | missing-service-platform-with-runtime-proof | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | latest-older-task | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | new-config-old-running-task | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | mixed-deployment | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | failure-wins-over-child-diagnostic | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | failure-wins-over-missing-count | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | failure-wins-over-unknown-service-version | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | older-config-current-task | βοΈ 599 | βοΈ setOfText(['1.1.0', '1.2.0', '1.3.0']).contains(extract('CA10__platformVersion__c')) | βοΈ null |
| π’ | older-config-wins-over-child-diagnostic | βοΈ 599 | βοΈ setOfText(['1.1.0', '1.2.0', '1.3.0']).contains(extract('CA10__platformVersion__c')) | βοΈ null |
| π’ | older-config-110-no-tasks | βοΈ 599 | βοΈ setOfText(['1.1.0', '1.2.0', '1.3.0']).contains(extract('CA10__platformVersion__c')) | βοΈ null |
| π’ | older-config-120-no-tasks | βοΈ 599 | βοΈ setOfText(['1.1.0', '1.2.0', '1.3.0']).contains(extract('CA10__platformVersion__c')) | βοΈ null |
| π’ | 1.1.0-older-than-current-target | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | 1.2.0-older-than-current-target | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | 1.3.0-older-than-current-target | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | no-running-tasks | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | missing-task-collection | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | partial-task-collection | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | excess-stale-task-record | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | stale-running-task-zero-count | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | missing-running-count | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | negative-running-count | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | missing-task-version | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | blank-task-version | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | unresolved-task-latest | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | ambiguous-task-100 | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ambiguous-service-100 | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | unknown-task-version | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | unknown-service-version | βοΈ 899 | βοΈ extract('CA10__platformVersion__c').isNotEmpty() && not(setOfText(['1.0.0', '1.1.0', '1.2.0', '1.3.0', '1.4.0', 'LATEST']).contains(extract('CA10__platformVersion__c'))) | βοΈ null |
| π’ | ambiguous-config-without-tasks | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | unknown-task-status | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | missing-task-status | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | missing-task-launch | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | unknown-task-launch | βοΈ 699 | βοΈ CA10__AWS_ECS_Tasks__r.has(UNDETERMINED) | βοΈ null |
| π’ | mixed-task-launch-types | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-provisioning | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-pending | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-activating | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-deactivating | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-stopping | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-deprovisioning | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-stopped | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | ignore-deleted | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | all-stopped | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | disappeared-task-ignored | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | only-disappeared-task | βοΈ 999 | βοΈ CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | service-draining | βοΈ 199 | βοΈ extract('CA10__status__c') != 'ACTIVE' | βοΈ null |
| π’ | service-ec2 | βοΈ 299 | βοΈ setOfText(['EC2', 'EXTERNAL', 'MANAGED_INSTANCES']).contains(extract('CA10__launchType__c')) | βοΈ null |
| π’ | service-external | βοΈ 299 | βοΈ setOfText(['EC2', 'EXTERNAL', 'MANAGED_INSTANCES']).contains(extract('CA10__launchType__c')) | βοΈ null |
| π’ | service-managed_instances | βοΈ 299 | βοΈ setOfText(['EC2', 'EXTERNAL', 'MANAGED_INSTANCES']).contains(extract('CA10__launchType__c')) | βοΈ null |
| π’ | unknown-service-status | βοΈ 199 | βοΈ extract('CA10__status__c') != 'ACTIVE' | βοΈ null |
| π’ | missing-service-status | βοΈ 101 | βοΈ CA10__status__c.isEmpty() | βοΈ null |
| π’ | unknown-service-launch | βοΈ 399 | βοΈ extract('CA10__launchType__c').isNotEmpty() && extract('CA10__launchType__c') != 'FARGATE' | βοΈ null |
| π’ | unclassified-service | βοΈ 799 | βοΈ extract('CA10__launchType__c').isEmpty() && extract('CA10__platformVersion__c').isEmpty() && CA10__AWS_ECS_Tasks__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | china-current | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | china-older-platform | βοΈ 499 | βοΈ CA10__AWS_ECS_Tasks__r.has(INCOMPLIANT) | βοΈ null |
| π’ | definition-and-image-versions-are-irrelevant | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | normalized-native-text | βοΈ 1000 | βοΈ otherwise | βοΈ null |
| π’ | supported-but-not-latest | βοΈ 599 | βοΈ setOfText(['1.1.0', '1.2.0', '1.3.0']).contains(extract('CA10__platformVersion__c')) | βοΈ null |
| π’ | ignore-unknown-non-running-task | βοΈ 1000 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/ecs/fargate-service-version/policy.yaml | 46FE5095059DAF0DE658E1BC532E1C8E |
| Open | /ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml | 36EF938B0E73D8316456763C78A8A00F |
| Open | /ce/ca/aws/ecs/fargate-service-version/test-data.json | 0984D3895A225CFAFCD176DEBE7E5342 |
| Open | /types/CA10__CaAwsEcsTask__c/object.extracts.yaml | 25EBE535C0FA6A06A2E9C9415E9FF07D |
| Open | /types/CA10__CaAwsEcsService__c/object.extracts.yaml | B77082FBE9DB305D622C85DD1890BA81 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ecs/fargate-service-version/prod.logic.yaml
Contentβ
---
# shortcut: Treat 1.0.0 as Windows; revisit if retired Linux 1.0.0 tasks need assessment.
inputType: "CA10__CaAwsEcsService__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsEcsService__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The service is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ACTIVE"
- status: "INAPPLICABLE"
currentStateMessage: "The ECS service does not use the Fargate launch type."
check:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "EC2"
- "EXTERNAL"
- "MANAGED_INSTANCES"
search:
EXTRACT: "CA10__launchType__c"
- status: "UNDETERMINED"
currentStateMessage: "The ECS service launch type is not recognized."
check:
AND:
args:
- NOT_EMPTY:
arg:
EXTRACT: "CA10__launchType__c"
- NOT_EQUAL:
left:
EXTRACT: "CA10__launchType__c"
right:
TEXT: "FARGATE"
- status: "INCOMPLIANT"
currentStateMessage: "At least one running service task uses a Linux Fargate platform version older than the latest version 1.4.0."
remediationMessage: "Complete a deployment on Linux platform version 1.4.0 or LATEST and replace all tasks on older platform versions."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__AWS_ECS_Tasks__r"
- status: "INCOMPLIANT"
currentStateMessage: "The ECS Fargate service is using an outdated platform version: 1.1.0, 1.2.0 or 1.3.0."
remediationMessage: "Update the service to use platform version 1.4.0 or LATEST."
check:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "1.1.0"
- "1.2.0"
- "1.3.0"
search:
EXTRACT: "CA10__platformVersion__c"
- status: "UNDETERMINED"
currentStateMessage: "At least one service task has missing, unrecognized, or unassessable runtime platform data."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10__AWS_ECS_Tasks__r"
- status: "INAPPLICABLE"
currentStateMessage: "The service launch type and platform version are empty, and no running task confirms Fargate use."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__launchType__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__platformVersion__c"
- RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10__AWS_ECS_Tasks__r"
- status: "INAPPLICABLE"
currentStateMessage: "The configured platform version is outside the verified platform version set."
check:
AND:
args:
- NOT_EMPTY:
arg:
EXTRACT: "CA10__platformVersion__c"
- NOT:
arg:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "1.0.0"
- "1.1.0"
- "1.2.0"
- "1.3.0"
- "1.4.0"
- "LATEST"
search:
EXTRACT: "CA10__platformVersion__c"
- status: "INAPPLICABLE"
currentStateMessage: "No running Fargate tasks could be assessed."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10__AWS_ECS_Tasks__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The assessed running Fargate tasks use the latest platform versions."
relatedLists:
- relationshipName: "CA10__AWS_ECS_Tasks__r"
importExtracts:
- file: "/types/CA10__CaAwsEcsTask__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The task is not in the RUNNING state."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__lastStatus__c"
right:
TEXT: "RUNNING"
- status: "INAPPLICABLE"
currentStateMessage: "The running task uses a non-Fargate launch type."
check:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "EC2"
- "EXTERNAL"
- "MANAGED_INSTANCES"
search:
EXTRACT: "CA10__launchType__c"
- status: "UNDETERMINED"
currentStateMessage: "The task launch type is missing or not recognized."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__launchType__c"
right:
TEXT: "FARGATE"
- status: "UNDETERMINED"
currentStateMessage: "The running Fargate task platform version is missing."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__platformVersion__c"
- status: "INCOMPLIANT"
currentStateMessage: "The running task uses a Linux Fargate platform version older than the latest version 1.4.0."
remediationMessage: "Test and deploy Linux platform version 1.4.0 or LATEST, replacing all tasks on older platform versions."
check:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "1.1.0"
- "1.2.0"
- "1.3.0"
search:
EXTRACT: "CA10__platformVersion__c"
- status: "COMPLIANT"
currentStateMessage: "The running task uses the latest Fargate platform version: 1.4.0 for Linux or 1.0.0 for Windows."
check:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "1.0.0"
- "1.4.0"
search:
EXTRACT: "CA10__platformVersion__c"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The task platform version is unresolved LATEST or is outside the verified platform version set."