Skip to content

Commit

Permalink
Use us-east-1 default region
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Mar 25, 2024
1 parent aeba68f commit cc191f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sky/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,15 @@ def split_cos_path(s3_path: str) -> Tuple[str, str, str]:
return bucket_name, data_path, region


def create_s3_client(region: Optional[str] = 'us-east-2') -> Client:
def create_s3_client(region: Optional[str] = 'us-east-1') -> Client:
"""Helper method that connects to Boto3 client for S3 Bucket
Args:
region: str; Region name, e.g. us-west-1, us-east-2. If None, default
region us-east-2 is used.
region us-east-1 is used.
"""
if region is None:
# If region is None, default to us-east-2 since
region = 'us-east-2'
region = 'us-east-1'
return aws.client('s3', region_name=region)


Expand Down

0 comments on commit cc191f3

Please sign in to comment.