tvl-depot/ops/keycloak/default.nix
Vincent Ambo 8e8d6eb1df refactor(ops/keycloak): Use tools.checks.validateTerraform
Remove some ~commit message~ ... uh, code duplication.

Change-Id: Id6e8f2132999e153d3984848f95ccabd52e4f45f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5853
Tested-by: BuildkiteCI
Reviewed-by: asmundo <asmundo@gmail.com>
2022-06-07 09:32:13 +00:00

14 lines
336 B
Nix

{ depot, lib, pkgs, ... }:
depot.nix.readTree.drvTargets rec {
# Provide a Terraform wrapper with the right provider installed.
terraform = pkgs.terraform.withPlugins (p: [
p.keycloak
]);
validate = depot.tools.checks.validateTerraform {
inherit terraform;
name = "keycloak";
src = lib.cleanSource ./.;
};
}