Skip to content

Add support per-account exclusions for Config Recorder via environmen… #30

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

menesjav
Copy link

Summary

This PR introduces the ability to define a separate list of AWS Config resource exclusions for specific accounts, without affecting others.

Changes

  • Adds two new CloudFormation parameters:
    • ConfigRecorderSpecialExcludedAccounts
    • ConfigRecorderOverrideSpecialExcludedResourceList
  • Updates ConsumerLambda environment variables to use these parameters.
  • Adjusts Lambda logic to apply special exclusions only when account_id matches.
  • Ensures backward compatibility with existing global exclusion list.

Motivation

This allows fine-grained control over resource recording settings across accounts in a Control Tower-managed environment, supporting use cases where only a subset of accounts require exclusion of high-volume resources (e.g., EC2 Volumes or ENIs).

No impact to other accounts or existing functionality.

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

Successfully merging this pull request may close these issues.

1 participant