Skip to content

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

Open
menesjav wants to merge 2 commits intoaws-samples:mainfrom
menesjav:main
Open

Add support per-account exclusions for Config Recorder via environmen…#30
menesjav wants to merge 2 commits intoaws-samples:mainfrom
menesjav:main

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