π§ 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
- Located in: π AWS VPC Subnet Map Public IP On Launch is enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS VPC Subnet | CA10__CaAwsSubnet__c | 2 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-08-29T17:46:57.969199786Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ extract('CA10__mapPublicIpOnLaunch__c') == true | βοΈ null |
π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
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 | 6E5BC73B7856205B117671D98B2EC47A |
Open | /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/test-data.json | E76E46EBAE1FCD54AA5B6E81D54EACA8 |
Open | /types/CA10__CaAwsSubnet__c/object.extracts.yaml | 7F012284F2BF194EA79A157883554CA2 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/vpc/disable-subnet-map-public-ip-on-launch/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar 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 public IP addresses to instances at launch."
remediationMessage: "Consider disabling the 'auto-assign public IP address' setting for this subnet to prevent unintended exposure of instances to the internet."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__mapPublicIpOnLaunch__c"
right:
BOOLEAN: true
otherwise:
status: "COMPLIANT"
currentStateMessage: "The subnet is not configured to automatically assign public IP addresses."