Skip to content

Commit

Permalink
fix: Add region.
Browse files Browse the repository at this point in the history
  • Loading branch information
brookemckim committed Apr 30, 2024
1 parent 25ba1c6 commit 2e6d0bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ def fetch_data(url):

def add_eni_info(instances):
client = boto3.client('ec2', region_name='us-east-1')
# need to add region to client and set up accordingly
response = client.describe_instance_types(Filters=[{'Name': 'instance-type', 'Values': ['*']}])
instance_types = response['InstanceTypes']

Expand Down Expand Up @@ -463,8 +462,7 @@ def add_vpconly_detail(instances):

def add_instance_storage_details(instances):
"""Add information about instance storage features."""
client = boto3.client('ec2')
# need to add region to client and set up accordingly
client = boto3.client('ec2', region_name='us-east-1')
response = client.describe_instance_types(Filters=[{'Name': 'instance-storage-supported', 'Values': ['true']},{'Name': 'instance-type', 'Values': ['*']}])
instance_types = response['InstanceTypes']

Expand Down

0 comments on commit 2e6d0bf

Please sign in to comment.