Problem
When running Sentinel commands, you may encounter a deprecation warning indicating that the module block is being removed in a future release.
$ sentinel apply policy-name.sentinel 1 warning occurred: * /home/sentinel-example/sentinel.hcl:7,1-26: Deprecation warning: "module" block; module "tfplan-functions" uses the deprecated "module" block, which is being removed in a future release. Please update your configuration.
Cause
This warning occurs because the module block is being deprecated in favor of the import block. This change prepares for future updates that will allow you to pin Sentinel runtime versions. You can find more information in the Import Modules documentation.
Solution
To resolve this warning, update your Sentinel configuration to use the import syntax instead of the module block.
import "module" "foo" {
source = "modules/foo.sentinel"
}Additional Information
For more details on this feature, refer to the Sentinel Modules documentation.