cloudposse-archives / tfmask

Terraform utility to mask select output from `terraform plan` and `terraform apply`
https://cloudposse.com/accelerate
Apache License 2.0
202 stars 27 forks source link

Can't make it working from CLI #29

Open alex-pravdin-sn opened 3 years ago

alex-pravdin-sn commented 3 years ago

Hi,

I'm typing the following script in CLI:

export TFMASK_VALUES_REGEX=".*"
echo password=1 | ./tfmask

And getting the following output:

password=1

Nothing was masked.

What I'm doing wrong?

simoon78 commented 3 years ago

Please try

export TFMASK_CHAR="*"
export TFMASK_VALUES_REGEX=".*"
echo '  password = "1"' | tfmask

Output should be:

password = "*"