From 1f4b902822606d70da8d9460fca36796437bfff2 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Thu, 21 Oct 2021 14:41:28 +0100 Subject: [PATCH 1/3] Create target_options.yml --- dbt/include/redshift/target_options.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dbt/include/redshift/target_options.yml diff --git a/dbt/include/redshift/target_options.yml b/dbt/include/redshift/target_options.yml new file mode 100644 index 000000000..22f12f581 --- /dev/null +++ b/dbt/include/redshift/target_options.yml @@ -0,0 +1,23 @@ +_fixed_type: redshift +host: + hint: 'hostname.region.redshift.amazonaws.com' +port: + default: 5439 + type: 'int' +user: + hint: 'dev username' +_choose_authentication_method: + password: + password: + hint: 'dev password' + hide_input: true + iam: + _fixed_method: iam +dbname: + hint: 'default database that dbt will build objects in' +schema: + hint: 'default schema that dbt will build objects in' +threads: + hint: '1 or more' + type: 'int' + default: 1 From 9ae7852b54a1bf4dc6ee1fa7613b89a16bcbc505 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Fri, 22 Oct 2021 13:07:41 +0100 Subject: [PATCH 2/3] Delete sample_profiles.yml --- dbt/include/redshift/sample_profiles.yml | 25 ------------------------ 1 file changed, 25 deletions(-) delete mode 100644 dbt/include/redshift/sample_profiles.yml diff --git a/dbt/include/redshift/sample_profiles.yml b/dbt/include/redshift/sample_profiles.yml deleted file mode 100644 index 46cd97934..000000000 --- a/dbt/include/redshift/sample_profiles.yml +++ /dev/null @@ -1,25 +0,0 @@ -default: - outputs: - - dev: - type: redshift - threads: [1 or more] - host: [host] - port: [port] - user: [dev_username] - pass: [dev_password] - dbname: [dbname] - schema: [dev_schema] - - prod: - type: redshift - method: iam - cluster_id: [cluster_id] - threads: [1 or more] - host: [host] - port: [port] - user: [prod_user] - dbname: [dbname] - schema: [prod_schema] - - target: dev From 77b847f2b6baad388a3e2876857b1638527d41ca Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Fri, 22 Oct 2021 16:51:23 +0100 Subject: [PATCH 3/3] update for latest changes --- dbt/include/redshift/profile_template.yml | 25 +++++++++++++++++++++++ dbt/include/redshift/target_options.yml | 23 --------------------- 2 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 dbt/include/redshift/profile_template.yml delete mode 100644 dbt/include/redshift/target_options.yml diff --git a/dbt/include/redshift/profile_template.yml b/dbt/include/redshift/profile_template.yml new file mode 100644 index 000000000..41f33e87e --- /dev/null +++ b/dbt/include/redshift/profile_template.yml @@ -0,0 +1,25 @@ +fixed: + type: redshift +prompts: + host: + hint: 'hostname.region.redshift.amazonaws.com' + port: + default: 5439 + type: 'int' + user: + hint: 'dev username' + _choose_authentication_method: + password: + password: + hint: 'dev password' + hide_input: true + iam: + _fixed_method: iam + dbname: + hint: 'default database that dbt will build objects in' + schema: + hint: 'default schema that dbt will build objects in' + threads: + hint: '1 or more' + type: 'int' + default: 1 diff --git a/dbt/include/redshift/target_options.yml b/dbt/include/redshift/target_options.yml deleted file mode 100644 index 22f12f581..000000000 --- a/dbt/include/redshift/target_options.yml +++ /dev/null @@ -1,23 +0,0 @@ -_fixed_type: redshift -host: - hint: 'hostname.region.redshift.amazonaws.com' -port: - default: 5439 - type: 'int' -user: - hint: 'dev username' -_choose_authentication_method: - password: - password: - hint: 'dev password' - hide_input: true - iam: - _fixed_method: iam -dbname: - hint: 'default database that dbt will build objects in' -schema: - hint: 'default schema that dbt will build objects in' -threads: - hint: '1 or more' - type: 'int' - default: 1