π§ AWS ECS Service automatically assigns public IP addresses - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS ECS Service
- π AWS ECS Service - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-12-17T01:30:46.206887435Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ extract('CA10__assignPublicIp__c') == 'Enabled' | βοΈ null |
| π’ | test3 | βοΈ 399 | βοΈ extract('CA10__assignPublicIp__c') == 'Disabled' | βοΈ null |
| π’ | test4 | βοΈ 199 | βοΈ extract('CA10__status__c') != 'ACTIVE' | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/ecs/service-public-ip-auto-assignment/policy.yaml | 40E908F9A08D4DE1E151C0B348245B1D |
| Open | /ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml | FF679D476AFCDD5849E22664756F6415 |
| Open | /ce/ca/aws/ecs/service-public-ip-auto-assignment/test-data.json | CB1855150DDA59389504020AF251CD34 |
| Open | /types/CA10__CaAwsEcsService__c/object.extracts.yaml | DE9B8176332CECD4A8C53207B8DA95F0 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ecs/service-public-ip-auto-assignment/prod.logic.yaml
Contentβ
---
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: "INCOMPLIANT"
currentStateMessage: "The ECS Service is configured to automatically assign public IP addresses."
remediationMessage: "Update the Service network configuration to disable Auto-assign public IP."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__assignPublicIp__c"
right:
TEXT: "Enabled"
- status: "COMPLIANT"
currentStateMessage: "The ECS Service is configured to not assign public IP addresses."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__assignPublicIp__c"
right:
TEXT: "Disabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."