π§ AWS VPC Subnet Map Public IP On Launch is enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS VPC Subnet
- π AWS VPC Subnet - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:33:21.332629846Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/policy.yaml | 45E132D818308283FF5F4F9E811EECDE |
| Open | /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml | 5348D2EBA3F79F81344072A1C21E5383 |
| Open | /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/test-data.json | D3EF82F265878BC951BAE4962208B81B |
| Open | /types/CA10__CaAwsSubnet__c/object.extracts.yaml | 393E30CD97C9DEE73FA18A1456EE4CBD |
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β
---
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."