Setting the file. One moment.
Subchapter 16.24
examples/conversion/elasticsearch-https-required/README.mdMarkdown904 BView on GitHub
elasticsearch-https-required.sentinel
Good
The enforcement intent is preserved, but the structure changes more noticeably than in a simple attribute check. The Sentinel version uses helper functions plus nested map lookups. The tfpolicy version rewrites that logic into direct block access with core::try() and separate enforce blocks.
maps.get() calls become core::try(local.endpoint_options[0]....)enforce blocksThis conversion depends on provider schema shape for domain_endpoint_options. As with other tfpolicy policies, block/list/set handling must match the exposed schema exactly.