Files
terraform-provider-dokploy/.agents/skills/terraform-policy/examples/conversion/elasticsearch-encrypted-at-rest
Max Vojtkov a6d8aa8b52 A Terraform provider for Dokploy
Plugin-framework provider covering projects, environments, applications,
Compose stacks, managed databases, domains, mounts, ports, redirects,
basic auth, registries, SSH keys, certificates and backup destinations,
over Dokploy's tRPC-over-REST API.

The shim package exposes the provider to other Go modules, which is how
pulumi-dokploy bridges it.
2026-08-09 12:17:26 +03:00
..
2026-08-09 12:17:26 +03:00

Elasticsearch Encrypted at Rest

Source Sentinel Policy

elasticsearch-encrypted-at-rest.sentinel

Conversion Quality

Good

Why this is Good

The original intent maps cleanly to tfpolicy, but the block shape still has to be rewritten in tfpolicy terms using core::try() around encrypt_at_rest[0].enabled.

Key translation notes

  • Nested map access becomes direct tfpolicy block access
  • The conversion checks the planned end state of encrypt_at_rest
  • The outcome is preserved even though the syntax changes substantially

Limitations encountered

This depends on the provider exposing encrypt_at_rest in the expected block/list structure. As with other tfpolicy policies, raw provider schema shape matters.