profiles.yml 컨텍스트
profiles.yml 컨텍스트
profiles.yml 파일에서 리소스를 구성할 때 다음 컨텍스트 메서드를 사용할 수 있어요.
출처: 문서
본문
사용 가능한 컨텍스트 메서드:
사용 예시
~/.dbt/profiles.yml
jaffle_shop:
target: dev
outputs:
dev:
type: redshift
host: "{{ env_var('DBT_HOST') }}"
user: "{{ env_var('DBT_USER') }}"
password: "{{ env_var('DBT_PASS') }}"
port: 5439
dbname: analytics
schema: dbt_dbanin
threads: 4
더 알아보기 (Learn more)
profiles.yml에서는 주로env_var으로 연결 정보의 비밀값을 넣는 용도로 써요.- 관련 개념: profiles.yml 문서.