π§ AWS EFS Mount Target is in a subnet that assigns public IP addresses on launch - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-12-17T01:30:47.488124015Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 299 | βοΈ extract('CA10__subnet__r.CA10__mapPublicIpOnLaunch__c') == true | βοΈ null |
| π’ | test2 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/efs/mount-target-public-ip/policy.yaml | 94B502DCAFB719B4BFC1EE073CE39AE8 |
| Open | /ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml | 8542A658354E637E5655B7FB8BF8EB02 |
| Open | /ce/ca/aws/efs/mount-target-public-ip/test-data.json | 59FDE3E5EF5833F79451B38E56CE1B80 |
| Open | /types/CA10__CaAwsSubnet__c/object.extracts.yaml | 7F012284F2BF194EA79A157883554CA2 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsEfsMountTarget__c"
importExtracts:
- file: "/types/CA10__CaAwsSubnet__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine the subnet configuration for the EFS Mount Target."
check:
IS_EMPTY_LOOKUP: CA10__subnet__r
- status: "INCOMPLIANT"
currentStateMessage: "The EFS Mount Target is in a subnet configured to automatically assign public IP addresses."
remediationMessage: "Move the EFS Mount Target to a private subnet or disable the 'Auto-assign public IPv4 address' setting on the current subnet."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__subnet__r.CA10__mapPublicIpOnLaunch__c"
right:
BOOLEAN: true
otherwise:
status: COMPLIANT
currentStateMessage: "The EFS Mount Target is in a subnet that does not automatically assign public IP addresses."