diff --git a/dbt_project.yml b/dbt_project.yml index 1f24842..6ef86c9 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -74,7 +74,7 @@ vars: - INTERNAL_DEV prod: - API_INTEGRATION: AWS_EXTERNAL_API_PRO_V2 + API_INTEGRATION: AWS_EXTERNAL_API_PROD_V2 EXTERNAL_FUNCTION_URI: zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/ ROLES: - AWS_LAMBDA_EXTERNAL_API diff --git a/macros/streamline/streamline_udfs.sql b/macros/streamline/streamline_udfs.sql index bc16432..607e796 100644 --- a/macros/streamline/streamline_udfs.sql +++ b/macros/streamline/streamline_udfs.sql @@ -3,7 +3,7 @@ OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2( json OBJECT ) returns ARRAY {% if target.database == 'EXTERNAL:' -%} - api_integration = aws_external_api_prod AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api' + api_integration = aws_external_api_prod_v2 AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api' {% else %} api_integration = aws_external_api_stg_v2 AS 'https://qoupd0givh.execute-api.us-east-1.amazonaws.com/stg/udf_bulk_rest_api' {%- endif %}