Setting the file. One moment.
Subchapter 16.8
examples/conversion/cloudtrail-server-side-encryption-enabled/README.mdMarkdown846 BView on GitHub
cloudtrail-server-side-encryption-enabled.sentinel
Good
The Sentinel policy is config-oriented and checks whether kms_key_id is present as a configured value. tfpolicy can preserve the same enforcement intent by validating the planned end-state value for attrs.kms_key_id.
tfconfig/v2 config inspection becomes a planned-value check in tfpolicykms_key_id is ultimately present, not whether it originated as a constant in the configThe tfpolicy version does not preserve the config-level distinction between explicit constant values and other configuration forms. It validates the final planned attribute value instead.