Skip to content

Instantly share code, notes, and snippets.

@fprimex
Created February 7, 2020 20:27
Show Gist options
  • Save fprimex/08f18b09804bc9541a7fbc591020e16f to your computer and use it in GitHub Desktop.
Save fprimex/08f18b09804bc9541a7fbc591020e16f to your computer and use it in GitHub Desktop.
External data source for container inspection
#!/bin/sh
find . -name 'errored.tfstate' >&2
echo {}
exit 1
data "external" "env" {
program = ["${path.module}/external.sh"]
}
resource "null_resource" "n" { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment