π§ AWS VPC Transit Gateway Auto Accept Shared Attachments is enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS VPC Transit Gateway
- π AWS VPC Transit Gateway - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:33:21.428345590Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10A1__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ extract('CA10A1__autoAcceptSharedAttachments__c') == 'enable' | βοΈ null |
| π’ | test3 | βοΈ 299 | βοΈ extract('CA10A1__autoAcceptSharedAttachments__c') == 'disable' | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/policy.yaml | D2592B9AF21E8D80DD2BAA63FAC61154 |
| Open | /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml | F5A7E290ABBB900D97B34FA70DA1CBF0 |
| Open | /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/test-data.json | 3ABAC51461EE44D42CA689A0810B6F59 |
| Open | /types/CA10A1__CaAwsVpcTransitGateway__c/object.extracts.yaml | F82921743F9A4B66CDD67DEAEB4AB401 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/vpc/disable-transit-gateway-auto-accept-shared-attachments/prod.logic.yaml
Contentβ
inputType: "CA10A1__CaAwsVpcTransitGateway__c"
testData:
- file: "./test-data.json"
importExtracts:
- file: /types/CA10A1__CaAwsVpcTransitGateway__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Transit Gateway is configured to automatically accept shared attachments."
remediationMessage: "Disable Auto Accept Shared Attachments for the Transit Gateway so cross-account connections are manually reviewed."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__autoAcceptSharedAttachments__c"
right:
TEXT: "enable"
- status: "COMPLIANT"
currentStateMessage: "Transit Gateway requires manual approval for shared attachments."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__autoAcceptSharedAttachments__c"
right:
TEXT: "disable"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."