From 719931e76cb58938fc70b90fe0faddb156708760 Mon Sep 17 00:00:00 2001 From: Felix Wang Date: Fri, 22 Apr 2022 17:58:49 -0700 Subject: [PATCH 1/2] Fix AWS bootstrap template Signed-off-by: Felix Wang --- sdk/python/feast/templates/aws/bootstrap.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdk/python/feast/templates/aws/bootstrap.py b/sdk/python/feast/templates/aws/bootstrap.py index 80c2480d254..dd4c08eba65 100644 --- a/sdk/python/feast/templates/aws/bootstrap.py +++ b/sdk/python/feast/templates/aws/bootstrap.py @@ -58,12 +58,11 @@ def bootstrap(): replace_str_in_file(config_file, "%AWS_REGION%", aws_region) replace_str_in_file(config_file, "%REDSHIFT_CLUSTER_ID%", cluster_id) replace_str_in_file(config_file, "%REDSHIFT_DATABASE%", database) - replace_str_in_file(driver_file, "%REDSHIFT_DATABASE%", database) + replace_str_in_file(config_file, "%REDSHIFT_DATABASE%", database) replace_str_in_file(config_file, "%REDSHIFT_USER%", user) replace_str_in_file( - driver_file, config_file, "%REDSHIFT_S3_STAGING_LOCATION%", s3_staging_location + config_file, "%REDSHIFT_S3_STAGING_LOCATION%", s3_staging_location ) - replace_str_in_file(config_file,) replace_str_in_file(config_file, "%REDSHIFT_IAM_ROLE%", iam_role) From 0c4aba728658afa1b52361f7d36448447aeebe23 Mon Sep 17 00:00:00 2001 From: Felix Wang Date: Sat, 23 Apr 2022 18:49:12 -0700 Subject: [PATCH 2/2] Fix template Signed-off-by: Felix Wang --- sdk/python/feast/templates/aws/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/feast/templates/aws/bootstrap.py b/sdk/python/feast/templates/aws/bootstrap.py index dd4c08eba65..456c6e9b709 100644 --- a/sdk/python/feast/templates/aws/bootstrap.py +++ b/sdk/python/feast/templates/aws/bootstrap.py @@ -58,7 +58,7 @@ def bootstrap(): replace_str_in_file(config_file, "%AWS_REGION%", aws_region) replace_str_in_file(config_file, "%REDSHIFT_CLUSTER_ID%", cluster_id) replace_str_in_file(config_file, "%REDSHIFT_DATABASE%", database) - replace_str_in_file(config_file, "%REDSHIFT_DATABASE%", database) + replace_str_in_file(driver_file, "%REDSHIFT_DATABASE%", database) replace_str_in_file(config_file, "%REDSHIFT_USER%", user) replace_str_in_file( config_file, "%REDSHIFT_S3_STAGING_LOCATION%", s3_staging_location