-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): adjust precedence of parameters
The AWS Config API does not allow both exclusion and inclusion sets. We currently allow users to provide both, and prefer `ExcludeResourceTypes`, which can be misleading if the intent was to restrict collection further. This commit changes precendence to prefer `IncludeResourceTypes` over `ExcludeResourceTypes`. The reasoning here is that the inclusion list tends to be small, in which case it is the cost conservative behavior. An alternative approach would be to assert that only one of the sets is provided. Unfortunately errors in cloudformation are hard to debug, so the user experience would be terrible.
- Loading branch information
Showing
2 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters