blob: ef95c7290ad88f8096346831a313b66afb50e954 (
plain) (
tree)
|
|
{ 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 = pkgs.runCommand "tf-validate-keycloak" { } ''
cp -r ${lib.cleanSource ./.}/* . && chmod -R u+w .
${terraform}/bin/terraform init -upgrade -backend=false -input=false
${terraform}/bin/terraform validate | tee $out
'';
}
|