-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
type: enhancementNew feature or requestNew feature or request
Description
In pull request #424 API access to store._running_in_us_west_2() is added in the form of a printed statement that the user is (or is not) running in AWS region us-west-2.
Unfortunately the check in store._running_in_us_west_2() only works for EC2 instances. It is not working for example for ECS (Elastic Container Service) instances running in region us-west-2. Now the big question is: is it intended that only EC2 instances in region us-west-2 can access the data OR can it be any computing instance running in region us-west-2.
In the second case store._running_in_us_west_2() could be adapted using boto3 for checking the region following the code snippet in issues #231 :
if (boto3.client('s3').meta.region_name == 'us-west-2'):
return True
else:
raise ValueError('Your notebook is not running inside the AWS us-west-2 region, and will not be able to directly access NASA Earthdata S3 buckets')
return False
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: enhancementNew feature or requestNew feature or request
Type
Projects
Status
🏗 In progress