Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

failing on cloudtrail module #86

@IhorKravchuk

Description

@IhorKravchuk

Failed to process rule defined in cloudtrail-no-global-services-logging.json

Traceback (most recent call last):
  File "./Scout2.py", line 235, in <module>
    sys.exit(main(args))
  File "./Scout2.py", line 169, in main
    aws_config['services'][service]['violations'][rule]['flagged_items'] = len(aws_config['services'][service]['violations'][rule]['items'])
KeyError: 'items'

If I remove cloudtrail-no-global-services-logging from default ruleset I got:

Analyzing AWS config...
Traceback (most recent call last):
  File "./Scout2.py", line 235, in <module>
    sys.exit(main(args))
  File "./Scout2.py", line 174, in main
    tweak_cloudtrail_findings(aws_config)
  File "/home/thor/Radialpoint/development/source/AWS/Scout2/AWSScout2/utils_cloudtrail.py", line 19, in tweak_cloudtrail_findings
    if len(aws_config['services']['cloudtrail']['violations']['cloudtrail-no-global-services-logging']['items']) != aws_config['services']['cloudtrail']['violations']['cloudtrail-no-global-services-logging']['checked_items']:
KeyError: 'cloudtrail-no-global-services-logging'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions