-
Notifications
You must be signed in to change notification settings - Fork 372
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
Add flag to allow recording global resource config in all regions #168
Add flag to allow recording global resource config in all regions #168
Conversation
@bharanin Thanks for the patch and useful links to the guidance! AWS Config best practices recommends to record global resources only in one region, so I'm afraid the recommendations from AWS might be inconsistent 🤔 |
I found that [AWS SecurityHub User' Guide] (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-prereq-config.html) recommended to record global resources in a single region then disable controls enforcing AWS Config enabled. From AWS User Guide
|
@nozaq thanks for digging in on this (and more generally for your work on this module - it's a really great resource). I do love it when the docs are all consistent 😂 fwiw, the SecurityHub recommendations seem to frame the global recording choice as a cost-saving option and note there are a bunch of other controls you need to disable as well:
https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-cis-to-disable.html Given the mixed guidance, I'd argue it's reasonable to give module users the choice to enable in all regions. In my use cases I'd probably rather deal with the added cost of extra recording than all the follow-up rule deactivations (especially given that we can't do this in tf). |
It would indeed be nice to toggle this on for all regions. The module user then can make the choice on cost. |
@bharanin I understood tha usecase, the PR lgtm. Defaults the flag to @lorengordon @sbower Sorry for taking a time to merge it, I'll merge it into master. Please let me know if you guys have any issues, thanks! |
The default configuration for SecurityHub and related AWS/CIS/PCI benchmarks expect to find global resource recording in each region - and all get rather unhappy if it's not there. SecurityHub, specifically, complains that AWS Config is not setup properly.
Guidance from AWS on this:
This PR adds a flag to allow turning on global recording in all regions. Default is currently false to avoid introducing a bunch of unexpected updates, but it might in fact be better to default true.