Subchapter 16.16
examples/conversion/ec2-vpc-default-security-group-no-traffic/README.mdMarkdown1 KBView on GitHub
ec2-vpc-default-security-group-no-traffic.sentinel
Not convertible as an exact translation
The included tfpolicy checks only inline ingress and egress rules on aws_default_security_group resources.
The Sentinel policy combines several config-level resource types:
aws_default_security_groupaws_security_group_ruleaws_vpc_security_group_ingress_ruleaws_vpc_security_group_egress_ruleIt then uses tfconfig/v2 reference metadata and regex checks to determine whether those separate rule resources target the default security group of a VPC. Current tfpolicy guidance does not expose equivalent config graph metadata, so it cannot safely reproduce that full relationship-aware behavior.
This means tfpolicy can approximate the inline-rule case, but it cannot fully enforce the broader Sentinel policy that also reasons over separate security group rule resources attached by reference.