From d87550c7c88d515f0df7ce3fa466a115fe046f9f Mon Sep 17 00:00:00 2001 From: varshith Date: Tue, 5 Mar 2024 13:08:49 +0100 Subject: [PATCH] fixed auto region and git ignore --- .gitignore | 3 ++- s3.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 01304ee..f64d0c1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ web/static/img/m_p_b/ web/static/img/m_p_c/ web/static/img/m_p_p/ web/static/img/m_r_f/ -web/content/datasets/* \ No newline at end of file +web/content/datasets/* +dev_utils/config.yaml \ No newline at end of file diff --git a/s3.go b/s3.go index c40106a..5538a7a 100644 --- a/s3.go +++ b/s3.go @@ -31,7 +31,7 @@ func connectMetadatas3(mConf MetadataS3Config) *MetadataBackend { }) cfg, err := config.LoadDefaultConfig(context.TODO(), - config.WithRegion(mConf.Region), + config.WithRegion("auto"), config.WithHTTPClient(httpClient), config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(mConf.AccessKey, mConf.SecretKey, "")), config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc( @@ -69,7 +69,7 @@ func connectDeployments3(dConf DeployS3Config) *DeploymentBackend { }) cfg, err := config.LoadDefaultConfig(context.TODO(), - config.WithRegion(dConf.Region), + config.WithRegion("auto"), config.WithHTTPClient(httpClient), config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(dConf.AccessKey, dConf.SecretKey, "")), config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(