From d3c8833183fd4a88e199cb8637ef78520e7e5108 Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Mon, 14 Oct 2024 13:54:44 +0200 Subject: [PATCH] Enable access edges collection (#2238) --- plugins/aws/fix_plugin_aws/collector.py | 2 +- plugins/aws/test/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/aws/fix_plugin_aws/collector.py b/plugins/aws/fix_plugin_aws/collector.py index 03a08346c5..9968e84a80 100644 --- a/plugins/aws/fix_plugin_aws/collector.py +++ b/plugins/aws/fix_plugin_aws/collector.py @@ -262,7 +262,7 @@ def get_last_run() -> Optional[datetime]: log.warning(f"Unexpected node type {node} in graph") raise Exception("Only AWS resources expected") - access_edge_collection_enabled = False + access_edge_collection_enabled = True if access_edge_collection_enabled and global_builder.config.collect_access_edges: # add access edges log.info(f"[Aws:{self.account.id}] Create access edges.") diff --git a/plugins/aws/test/__init__.py b/plugins/aws/test/__init__.py index 4b96212e7b..9472f7611a 100644 --- a/plugins/aws/test/__init__.py +++ b/plugins/aws/test/__init__.py @@ -17,7 +17,7 @@ @fixture def aws_config() -> AwsConfig: - config = AwsConfig(discard_account_on_resource_error=True) + config = AwsConfig(discard_account_on_resource_error=True, collect_access_edges=False) config.sessions().session_class_factory = BotoFileBasedSession return config