Skip to content

Commit

Permalink
Fixed incorrect relative paths set in index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonce committed May 23, 2024
1 parent 56ac742 commit 9a3a762
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

ROOT_PAGE = 'https://docs.aws.amazon.com/config/latest/developerguide/'
AWS_MANAGED_RULES_PAGE = ROOT_PAGE + 'managed-rules-by-aws-config.html'
SOURCE_FILE_NAME = Path('config_rule_data.json')
LOCALS_FILE_PATH = Path('..', '..', 'managed_rules_locals.tf')
VARIABLES_FILE_PATH = Path('..', '..', 'managed_rules_variables.tf')
CURRENT_DIR = Path(__file__).resolve().parent
SOURCE_FILE_NAME = Path(CURRENT_DIR, 'config_rule_data.json')
LOCALS_FILE_PATH = Path(CURRENT_DIR, '..', 'managed_rules_locals.tf').resolve()
VARIABLES_FILE_PATH = Path(CURRENT_DIR, '..', 'managed_rules_variables.tf').resolve()

if __name__ == '__main__':
# Scrape AWS documentation for the latest Config Rules.
Expand Down

0 comments on commit 9a3a762

Please sign in to comment.