Skip to main content

🧠 AWS EFS Mount Target is in a subnet that assigns public IP addresses on launch - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-17T01:30:47.488124015Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 299βœ”οΈ extract('CA10__subnet__r.CA10__mapPublicIpOnLaunch__c') == trueβœ”οΈ null
🟒test2βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/efs/mount-target-public-ip/policy.yaml94B502DCAFB719B4BFC1EE073CE39AE8
Open/ce/ca/aws/efs/mount-target-public-ip/prod.logic.yaml8542A658354E637E5655B7FB8BF8EB02
Open/ce/ca/aws/efs/mount-target-public-ip/test-data.json59FDE3E5EF5833F79451B38E56CE1B80
Open/types/CA10__CaAwsSubnet__c/object.extracts.yaml7F012284F2BF194EA79A157883554CA2

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​

Open File

---
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."