Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

reading from standard input instead of command line argument #78

Open
yukinying opened this issue Sep 24, 2019 · 1 comment
Open

reading from standard input instead of command line argument #78

yukinying opened this issue Sep 24, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@yukinying
Copy link
Contributor

This would faciliate the use of pipe with terraform-validator. Consider the case for terraform show, this would remove the step of storing the intermediate artifacts on local disk.

@morgante
Copy link
Contributor

Yes, this is a good idea. I'd say that if - is provided as the plan file name we should read from stdin.

terraform show -json ./terraform.tfplan | terraform-validator validate --policy-path=${POLICY_PATH} -

@morgante morgante added the enhancement New feature or request label Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants