Skip to content

Commit fee7b5a

Browse files
authored
Enable access_edges via env variable (#2262)
1 parent d2acc74 commit fee7b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/aws/fix_plugin_aws/collector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from collections import defaultdict
33
from concurrent.futures import Future, ThreadPoolExecutor
44
from datetime import datetime, timedelta, timezone
5+
import os
56
from typing import List, Type, Optional, Union, cast, Any
67

78
from fix_plugin_aws.access_edges import AccessEdgeCreator
@@ -262,7 +263,7 @@ def get_last_run() -> Optional[datetime]:
262263
log.warning(f"Unexpected node type {node} in graph")
263264
raise Exception("Only AWS resources expected")
264265

265-
access_edge_collection_enabled = False
266+
access_edge_collection_enabled = os.environ.get("ACCESS_EDGE_COLLECTION_ENABLED", "false").lower() == "true"
266267
if access_edge_collection_enabled and global_builder.config.collect_access_edges:
267268
# add access edges
268269
log.info(f"[Aws:{self.account.id}] Create access edges.")

0 commit comments

Comments
 (0)