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