β Repository β π Compliance Engine β π CloudAware β π AWS β π ECR β π‘οΈ Repository Lifecycle Policy is not configuredπ’
π§ AWS ECR Repository Lifecycle Policy is not configured - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml
- Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-10-04T12:03:06.228848491Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ extract('CA10__lifecyclePolicyText__c').isEmpty() | βοΈ null |
π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/ecr/repository-lifecycle/policy.yaml | 2A2577C836E61FA91B7C68B82A9E410B |
Open | /ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml | C20109D91418F9E2D6846A12FABA6A3C |
Open | /ce/ca/aws/ecr/repository-lifecycle/test-data.json | 638DA1C0404BEF56F6458223BA06A87F |
Open | /types/CA10__CaAwsEcrRepository__c/object.extracts.yaml | B0BC5F2B3D6A5EE7EDEC92352F9935A7 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ecr/repository-lifecycle/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsEcrRepository__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsEcrRepository__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The ECR repository does not have a lifecycle policy configured."
remediationMessage: "Create a lifecycle policy to automatically manage container images."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__lifecyclePolicyText__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The ECR repository has a lifecycle policy configured."