entechlog / dbt-snow-mask

This repository contains source code for dbt package dbt_snow_mask.
https://hub.getdbt.com/entechlog/dbt_snow_mask/latest/
GNU General Public License v3.0
60 stars 25 forks source link

on-run-start with 'models' parameter failed #71

Open linusyoung opened 9 months ago

linusyoung commented 9 months ago

I tried to put {{ dbt_snow_mask.create_masking_policy('models') }} in the on-run-start, however it runs error message as below. any idea what I did wrong?

dbt=1.7.0

on-run-start:
  "{{ dbt_snow_mask.create_masking_policy('models') }}"
 'dict object' has no attribute 'create_masking_policy_mp_encrypt_pii'

when executing manually, it creates policy without issue.

dbt run-operation create_masking_policy --args "{'resource_type': 'models'}"
juan-yunis commented 5 months ago

I'm having this issue too, but mine is working locally, but it's failing when running in CodeBuild.