Skip to content
Discussion options

You must be logged in to vote

This is unfortunately by design. Terratest is meant to be a non-interactive testing framework, similar to npm test, pytest, and others. Under the hood, terratest uses the unit testing framework of golang (in go test), and thus stdin is not accessible. It would take considerable effort for us to support this, and thus we are unlikely to support interactive prompts anytime soon.

The canonical way to handle what you are describing with secrets is to use environment variables, or a secrets management solution (like AWS Secrets Manager) and pull the data from those sources instead of feeding them in in an interactive manner.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yorinasub17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants