Skip to content

Commit

Permalink
Adding more info in the log when there are duplicate aws profiles (#1166
Browse files Browse the repository at this point in the history
)

The dictionary is a mapping between profile name to account ID, no
sensitive information there.

This is to help investigate the issue. We're currently seeing this
warning log but the AWS config file doesn't look like it contains
duplicates.
  • Loading branch information
khanhldt authored May 4, 2023
1 parent 6a76e3d commit afd3e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartography/intel/aws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def start_aws_ingestion(neo4j_session: neo4j.Session, config: Config) -> None:
(
"There are duplicate AWS accounts in your AWS configuration. It is strongly recommended that you run "
"cartography with an AWS configuration which has exactly one profile for each AWS account you want to "
"sync. Doing otherwise will result in undefined and untested behavior."
f"sync. Doing otherwise will result in undefined and untested behavior. Account list: {aws_accounts}"
),
)

Expand Down

0 comments on commit afd3e7d

Please sign in to comment.