diff --git a/hooks/createi2o.sh b/hooks/createi2o.sh index a50c7ab..54976a3 100755 --- a/hooks/createi2o.sh +++ b/hooks/createi2o.sh @@ -25,7 +25,7 @@ if [ -f "${TFHFILE}" ] ; then rm -f "${TFHFILE}" fi -TFDOCSHCL=$(terraform-docs tfvars json "${CWD}" | jq -r 'with_entries(select(.key | contains("password") or contains ("secret") |not)) | keys[] as $k | "\($k) = var.\($k)"' | indenttfo ) +TFDOCSHCL=$(terraform-docs tfvars json "${CWD}" | jq -r 'with_entries(select(.key | contains("password") or contains("secret") or contains("access_key") | not)) | keys[] as $k | "\($k) = var.\($k)"' | indenttfo ) cat > "${TFHFILE}" <