β Repository β π Compliance Engine β π CloudAware β π AWS β π S3 β π‘οΈ Bucket with Intelligent-Tiering is missing Archive configurationsπ’
π§ AWS S3 Bucket with Intelligent-Tiering is missing Archive configurations - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml
- Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS S3 Bucket
- π AWS S3 Bucket - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-10-01T12:46:00.110758814Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | 002 | βοΈ 199 | βοΈ extract('CA10__intelligentTieringStorageGb__c').isEmpty() && extract('caJsonFrom__lifecycleRulesJson__c').isEmpty() | βοΈ null |
π’ | 003 | βοΈ 299 | βοΈ extract('CA10__intelligentTieringStorageGb__c').isEmpty() && extract('caJsonFrom__lifecycleRulesJson__c').jsonQueryText('length([?status==\'Enabled\'].transitions[] | [?storageClassAsString==\'INTELLIGENT_TIERING\'])') == number(0.0) | βοΈ null |
π’ | 004 | βοΈ 399 | βοΈ extract('caJsonFrom__intelligentTieringConfigurationsJson__c').isEmpty() | βοΈ null |
π’ | 005 | βοΈ 399 | βοΈ extract('caJsonFrom__intelligentTieringConfigurationsJson__c').isEmpty() | βοΈ null |
π’ | 006 | βοΈ 499 | βοΈ extract('caJsonFrom__intelligentTieringConfigurationsJson__c').jsonQueryText('length(@)') == number(0.0) | βοΈ null |
π’ | 007 | βοΈ 599 | βοΈ extract('caJsonFrom__intelligentTieringConfigurationsJson__c').jsonQueryText('length([?status==\'Enabled\'])') == number(0.0) | βοΈ null |
π’ | 008 | βοΈ 600 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/policy.yaml | B9DE16FBD93956C48975515DBB635069 |
Open | /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml | 2F904C9200503FE72AEA05C1B76F0945 |
Open | /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/test-data.json | 4C8B259B4B9D193DAFADDA406C0C6A3C |
Open | /types/CA10__CaAwsBucket__c/object.extracts.yaml | 2191662ECE28C46BA33E49CFC5DC1EBA |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/s3/bucket-intelligent-tiering-configuration/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsBucket__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsBucket__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The bucket doesn't store objects in Intelligent Tiering."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__intelligentTieringStorageGb__c"
- IS_EMPTY:
arg:
EXTRACT: "caJsonFrom__lifecycleRulesJson__c"
- status: "INAPPLICABLE"
currentStateMessage: "The bucket doesn't store objects in Intelligent Tiering."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__intelligentTieringStorageGb__c"
# returns true if there are no active lifecycle rules that move objects to INTELLIGENT_TIERING
- IS_EQUAL:
left:
JSON_QUERY_NUMBER:
arg:
EXTRACT: "caJsonFrom__lifecycleRulesJson__c"
expression: "length([?status=='Enabled'].transitions[] | [?storageClassAsString=='INTELLIGENT_TIERING'])"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return a boolean."
right:
NUMBER: 0.0
- status: "INCOMPLIANT"
currentStateMessage: "The bucket doesn't have an Intelligent Tiering configuration."
remediationMessage: "Consider creating an S3 Intelligent Tiering configuration for the bucket."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonFrom__intelligentTieringConfigurationsJson__c"
- status: "INCOMPLIANT"
currentStateMessage: "The bucket doesn't have an Intelligent Tiering configuration."
remediationMessage: "Consider creating an S3 Intelligent Tiering configuration for the bucket."
check:
IS_EQUAL:
left:
JSON_QUERY_NUMBER:
arg:
EXTRACT: "caJsonFrom__intelligentTieringConfigurationsJson__c"
expression: "length(@)"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return number type."
right:
NUMBER: 0.0
- status: "INCOMPLIANT"
currentStateMessage: "The bucket Intelligent Tiering configuration is disabled."
remediationMessage: "Consider enabling an S3 Intelligent Tiering configuration for the bucket."
check:
IS_EQUAL:
left:
JSON_QUERY_NUMBER:
arg:
EXTRACT: "caJsonFrom__intelligentTieringConfigurationsJson__c"
expression: "length([?status=='Enabled'])"
undeterminedIf:
evaluationError: "The JSON query has failed."
resultTypeMismatch: "The JSON query did not return number type."
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The bucket has an active Intelligent Tiering configuration."