Skip to main content

🧠 AWS VPC Subnet Map Public IP On Launch is enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:33:21.332629846Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ extract('CA10__mapPublicIpOnLaunch__c')βœ”οΈ null
🟒test3βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null
🟒test4βœ”οΈ 199βœ”οΈ extract('CA10__mapPublicIpOnLaunch__c') && extract('CA10__assignIpv6AddressOnCreation__c')βœ”οΈ null
🟒test5βœ”οΈ 399βœ”οΈ extract('CA10__assignIpv6AddressOnCreation__c')βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/policy.yaml45E132D818308283FF5F4F9E811EECDE
Open/ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml5348D2EBA3F79F81344072A1C21E5383
Open/ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/test-data.jsonD3EF82F265878BC951BAE4962208B81B
Open/types/CA10__CaAwsSubnet__c/object.extracts.yaml393E30CD97C9DEE73FA18A1456EE4CBD

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsSubnet__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsSubnet__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The subnet is configured to automatically assign IPv4 and IPv6 addresses to instances at launch."
remediationMessage: "Disable the 'auto-assign public IP address' setting for this subnet to prevent unintended exposure of instances to the internet."
check:
AND:
args:
- EXTRACT: "CA10__mapPublicIpOnLaunch__c"
- EXTRACT: "CA10__assignIpv6AddressOnCreation__c"
- status: "INCOMPLIANT"
currentStateMessage: "The subnet is configured to automatically assign public IPv4 addresses to instances at launch."
remediationMessage: "Disable the 'auto-assign public IP address' setting for this subnet to prevent unintended exposure of instances to the internet."
check:
EXTRACT: "CA10__mapPublicIpOnLaunch__c"
- status: "INCOMPLIANT"
currentStateMessage: "The subnet is configured to automatically assign public IPv6 addresses to instances at launch."
remediationMessage: "Disable the 'auto-assign public IP address' setting for this subnet to prevent unintended exposure of instances to the internet."
check:
EXTRACT: "CA10__assignIpv6AddressOnCreation__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The subnet is not configured to automatically assign public IP addresses."