Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial subscription limited to 50 groups #1

Closed
kichik opened this issue Feb 5, 2019 · 1 comment
Closed

Initial subscription limited to 50 groups #1

kichik opened this issue Feb 5, 2019 · 1 comment

Comments

@kichik
Copy link

@kichik kichik commented Feb 5, 2019

The following function uses describe_log_groups() but ignores nextToken. By default limit is set to 50 so that means no more than 50 log groups will be subscribed.

def add_subscriptions_to_existing_log_groups(self):
# Retrieve all of the existing log groups
log_group_response = self.log_client.describe_log_groups()

CloudTrail events will catch new log groups, but existing groups will remain unsubscribed.

@davidlbailey11
Copy link
Contributor

@davidlbailey11 davidlbailey11 commented Jun 7, 2019

Good catch, thanks. Updated the code to include the nextToken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants