🧠 AWS EBS Volume has an Adaptive migration opportunity - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-12-05T12:03:05.192203395Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | gp3-at-savings-threshold | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | gp3-just-below-savings-threshold | ✔️ 699 | ✔️ (extract('CA10__volumeType__c') == 'gp3' && extract('CA10__size__c') < number(1750.0)) || (extract('CA10__volumeType__c') == 'io2' && extract('CA10__size__c') < number(699.0)) | ✔️ null |
| 🟢 | above-savings-threshold-in-oregon | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | gp3-already-adaptive | ✔️ 299 | ✔️ not(setOfText(['gp3', 'io2']).contains(extract('CA10__volumeType__c'))) | ✔️ null |
| 🟢 | unsupported-gp2 | ✔️ 299 | ✔️ not(setOfText(['gp3', 'io2']).contains(extract('CA10__volumeType__c'))) | ✔️ null |
| 🟢 | missing-volume-type | ✔️ 199 | ✔️ extract('CA10__volumeType__c').isEmpty() | ✔️ null |
| 🟢 | missing-volume-status | ✔️ 399 | ✔️ extract('CA10__status__c').isEmpty() | ✔️ null |
| 🟢 | available-gp3-at-savings-threshold | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | region-outside-former-allowlist | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | no-region-data | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | missing-size | ✔️ 501 | ✔️ CA10__size__c.isEmpty() | ✔️ null |
| 🟢 | invalid-zero-size | ✔️ 599 | ✔️ extract('CA10__size__c') <= number(0.0) | ✔️ null |
| 🟢 | no-ec2-attachment | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | unresolved-ec2-attachment | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | disappeared-ec2-attachment | ✔️ 899 | ✔️ extract('CA10__volumeType__c') == 'gp3' | ✔️ null |
| 🟢 | missing-zone-evidence | ✔️ 701 | ✔️ CA10A1__accountAvailabilityZone__r.CA10A1__type__c.isEmpty() | ✔️ null |
| 🟢 | local-zone | ✔️ 799 | ✔️ CA10__attachmentInstance2__r.CA10__outpostArn__c.isNotEmpty() || CA10A1__accountAvailabilityZone__r.CA10A1__type__c != 'availability-zone' | ✔️ null |
| 🟢 | outpost | ✔️ 799 | ✔️ CA10__attachmentInstance2__r.CA10__outpostArn__c.isNotEmpty() || CA10A1__accountAvailabilityZone__r.CA10A1__type__c != 'availability-zone' | ✔️ null |
| 🟢 | disappeared-volume | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
| 🟢 | io2-at-savings-threshold | ✔️ 900 | ✔️ otherwise | ✔️ null |
| 🟢 | io2-just-below-savings-threshold | ✔️ 699 | ✔️ (extract('CA10__volumeType__c') == 'gp3' && extract('CA10__size__c') < number(1750.0)) || (extract('CA10__volumeType__c') == 'io2' && extract('CA10__size__c') < number(699.0)) | ✔️ null |
| 🟢 | io2-already-adaptive | ✔️ 299 | ✔️ not(setOfText(['gp3', 'io2']).contains(extract('CA10__volumeType__c'))) | ✔️ null |
| 🟢 | available-io2-at-savings-threshold | ✔️ 900 | ✔️ otherwise | ✔️ null |
| 🟢 | available-gp3-below-savings-threshold | ✔️ 699 | ✔️ (extract('CA10__volumeType__c') == 'gp3' && extract('CA10__size__c') < number(1750.0)) || (extract('CA10__volumeType__c') == 'io2' && extract('CA10__size__c') < number(699.0)) | ✔️ null |
| 🟢 | creating-volume | ✔️ 499 | ✔️ not(setOfText(['in-use', 'available']).contains(extract('CA10__status__c'))) | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/ec2/ebs-volume-adaptive/policy.yaml | EE6423EEBF3AB90A40ACB621F3B02341 |
| Open | /ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml | DF20EE14D363F8E3399A7FAC4D7E442E |
| Open | /ce/ca/aws/ec2/ebs-volume-adaptive/test-data.json | DE137CC1A408E80080D1B88F26778374 |
| Open | /types/CA10__CaAwsVolume__c/object.extracts.yaml | 744A74FBAEC6869702DCFD86ADF88FE9 |
Available Commands
repo-manager policies generate FULL /ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ec2/ebs-volume-adaptive/prod.logic.yaml
Content
---
inputType: CA10__CaAwsVolume__c
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsVolume__c/object.extracts.yaml
conditions:
- status: UNDETERMINED
currentStateMessage: The EBS volume type is unavailable.
check:
IS_EMPTY:
arg:
EXTRACT: CA10__volumeType__c
- status: INAPPLICABLE
currentStateMessage: The EBS volume type is outside the gp3 and io2 migration scope.
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- gp3
- io2
search:
EXTRACT: CA10__volumeType__c
- status: UNDETERMINED
currentStateMessage: The EBS volume status is unavailable.
check:
IS_EMPTY:
arg:
EXTRACT: CA10__status__c
- status: INAPPLICABLE
currentStateMessage: The volume state is outside the migration assessment scope.
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- in-use
- available
search:
EXTRACT: CA10__status__c
- status: UNDETERMINED
currentStateMessage: The provisioned EBS volume size must be positive.
check:
LESS_THAN_EQUAL:
left:
EXTRACT: CA10__size__c
right:
NUMBER: 0
- status: COMPLIANT
currentStateMessage: The volume is below the minimum size for an Adaptive Volume savings recommendation at full storage consumption.
# The size cutoffs meet the savings floor across the AWS rate pairs checked on 2026-12-03.
check:
OR:
args:
- AND:
args:
- IS_EQUAL:
left:
EXTRACT: CA10__volumeType__c
right:
TEXT: gp3
- LESS_THAN:
left:
EXTRACT: CA10__size__c
right:
NUMBER: 1750
- AND:
args:
- IS_EQUAL:
left:
EXTRACT: CA10__volumeType__c
right:
TEXT: io2
- LESS_THAN:
left:
EXTRACT: CA10__size__c
right:
NUMBER: 699
- status: INAPPLICABLE
currentStateMessage: The volume's deployment location is outside the Adaptive Volume scope.
check:
OR:
args:
# An attached instance can identify an Outpost. Owners confirm volume placement before migration.
- NOT_EMPTY:
arg:
FIELD:
path: CA10__attachmentInstance2__r.CA10__outpostArn__c
- NOT_EQUAL:
left:
FIELD:
path: CA10A1__accountAvailabilityZone__r.CA10A1__type__c
undeterminedIf:
isEmpty: The EBS volume's account Availability Zone type is unavailable.
right:
TEXT: availability-zone
- status: INCOMPLIANT
currentStateMessage: At public rates, migrating this volume to gp3a could save at least $5 per month even at full storage consumption.
remediationMessage: Confirm conversion eligibility and estimated savings, then change the volume type to gp3a with the existing size, IOPS, and throughput.
check:
IS_EQUAL:
left:
EXTRACT: CA10__volumeType__c
right:
TEXT: gp3
otherwise:
status: INCOMPLIANT
currentStateMessage: At public rates, migrating this volume to io2a could save at least $5 per month even at full storage consumption.
remediationMessage: Confirm conversion eligibility and estimated savings, then change the volume type to io2a with the existing size and IOPS.