Setting the file. One moment.
Subchapter 16.12
examples/conversion/dms-endpoints-should-use-ssl/README.mdMarkdown800 BView on GitHub
dms-endpoints-should-use-ssl.sentinel
Perfect
This policy is a straightforward single-resource attribute check. The Sentinel version iterates over aws_dms_endpoint resources and rejects any resource whose ssl_mode is not in an allowlist. tfpolicy can express the same intent directly with one resource_policy, one allowlist, and one enforce block.
collection.reject() becomes one positive conditionmaps.get(res, "values.ssl_mode", null) becomes core::try(attrs.ssl_mode, "")No significant tfpolicy limitation blocks this conversion.