Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
silavjy committed Mar 18, 2024
2 parents 420b018 + bb3af67 commit d51ff76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions EC-Switch-Seclog.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,22 +673,21 @@ def activate_config(account_id,account_session,tseclog_id,tseclog_session):


tseclog_cl = tseclog_session.client('config')

try:
response = tseclog_cl.describe_configuration_aggregators(
ConfigurationAggregatorNames=[
'SecLogAggregator',
]
)



for aggregationSources in response['ConfigurationAggregators'][0]['AccountAggregationSources']:
accountsIds = aggregationSources['AccountIds']

if account_id not in aggregationSources['AccountIds']:
accountsIds.append(account_id)
except botocore.exceptions.ClientError as error:
accountsIds.append(account_id)

tseclog_cl.put_configuration_aggregator(
ConfigurationAggregatorName='SecLogAggregator',
AccountAggregationSources=[
Expand Down

0 comments on commit d51ff76

Please # to comment.