obsrvbl-oss / flowlogs-reader

Command line tool and Python library for working with AWS VPC Flow Logs
Apache License 2.0
138 stars 23 forks source link

Attempt to use configured default AWS region #15

Closed bbayles closed 9 years ago

bbayles commented 9 years ago

Re: issue #14, this PR changes FlowLogsReader such that it honors the user's region configuration.

According to the boto3 documentation, you may try to initialize boto3.client without a region specified if the AWS_DEFAULT_REGION environment variable is set or if the ~/.aws/config file has a default region set.

FlowLogsReader now behaves like this:

@hjacobs, I presume this will fix your issue? I will merge this, create a new release, and close #14 if so.

hjacobs commented 9 years ago

:+1: thanks