Skip to content

Commit

Permalink
Pass output file path as argument when generating config rule data
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonce committed May 29, 2024
1 parent 5390b4c commit 79d279e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/lib/aws_docs_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,8 @@ def to_dict(self) -> dict:
'control': self.name}


def generate_config_rule_data(root_url: str, managed_rules_page: str) -> None:
def generate_config_rule_data(root_url: str, managed_rules_page: str, output_file: Union[Path, str]) -> None:
logging.info("Scraping AWS documentation for AWS-managed Config Rules.")
output_file = 'config_rule_data.json'
reader = AwsDocsReader(
root_url=root_url,
managed_rules_page=managed_rules_page)
Expand Down

0 comments on commit 79d279e

Please sign in to comment.