flosell / flosell/trailscraper

Region selection for `trailscraper select`

Open
#232 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
838
Forks
38
Avg merge
2m
Merged PRs (30d)
14

Description

Hi,

Thanks for this great library. What is the best way to set this up? I am running from an ec2 instance with an instance profile that has access to the cloudtrail api but seeing:

```
trailscraper select --use-cloudtrail-api \
--filter-assumed-role-arn my-assumed-role \
--from 'one hour ago' \
--to 'now'
...
(large python stacktrace trimmed)
botocore.exceptions.NoRegionError: You must specify a region.
```

It does not look like there is a `region` option with `trailscraper select --help`.

Thanks again.

Contributor guide

Open the contributing guide

Research direction

Start with the `trailscraper select` command and its `--help` output, then trace the `--use-cloudtrail-api` path to where the AWS client is configured. Done means users can provide a region when selecting through CloudTrail API and the command no longer raises `NoRegionError` on an EC2 instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.