Skip to main content

Repository → 📁 Compliance Engine → 📁 CloudAware → 📁 AWS → 📁 EC2 → 🛡️ Elastic IP is unused🟢

🧠 AWS EC2 Elastic IP is unused - prod.logic.yaml🟢

Uses

Test Results 🟢

Generated at: 2025-10-01T12:44:56.968177851Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟢001✔️ 199✔️ extract('CA10__associationId__c').isEmpty()✔️ null
🟢002✔️ 200✔️ otherwise✔️ null

Generation Bundle

FileMD5
Open/ce/ca/aws/ec2/elastic-ip-unused/policy.yaml327AB5F17E16596B740A0F0F38B667F7
Open/ce/ca/aws/ec2/elastic-ip-unused/prod.logic.yamlB6B81FBB1AC077C1FDABF3E4A9762AB5
Open/ce/ca/aws/ec2/elastic-ip-unused/test-data.jsonE3FE86128D26B54B7E67B935D70AD22F
Open/types/CA10__CaAwsElasticIp__c/object.extracts.yamlF70A967FFE6C3B6C7D48474507307B38

Available Commands

repo-manager policies generate FULL /ce/ca/aws/ec2/elastic-ip-unused/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ec2/elastic-ip-unused/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ec2/elastic-ip-unused/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ec2/elastic-ip-unused/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ec2/elastic-ip-unused/prod.logic.yaml

Content

Open File

---
inputType: "CA10__CaAwsElasticIp__c"
importExtracts:
- file: "/types/CA10__CaAwsElasticIp__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: INCOMPLIANT
currentStateMessage: "The Elastic IP address is not associated with any EC2 instance or network interface."
remediationMessage: "Consider releasing the unused Elastic IP address."
check:
IS_EMPTY:
arg:
EXTRACT: CA10__associationId__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Elastic Ip is used."