Files
terraform-provider-dokploy/.agents/skills/terraform-policy/examples/conversion/elasticsearch-in-vpc-only
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 In VPC Only

Source Sentinel Policy

elasticsearch-in-vpc-only.sentinel

Conversion Quality

Limited

Why this is limited

The Sentinel policy is config-oriented and accepts either constant subnet IDs or references inside vpc_options.subnet_ids. tfpolicy does not expose the same config-level constant_value and references metadata, so it cannot preserve that distinction exactly.

What the tfpolicy approximation does

The tfpolicy version checks the planned end state and requires vpc_options[0].subnet_ids to contain one or more values.

Limitations encountered

  • It validates the resulting planned subnet IDs, not whether they originated from constants vs references
  • It assumes the provider exposes vpc_options and subnet_ids in the expected schema shape
  • It is a useful enforcement approximation, but not a one-to-one tfconfig translation