AttributeError: 'Plugin' object has no attribute '_Plugin__generate_inline_policy'
See original GitHub issueReceiving following error when attempt to run key-compromise. Any help greatly appreciated.
> (aws_ir_env) [ec2-user@ip-10-0-1-145 venv]$ aws_ir key-compromise --access-key-id ***ACCESSKEY***
> 2018-07-06T20:39:32 - aws_ir.cli - INFO - Initialization successful proceeding to incident plan.
> 2018-07-06T20:39:32 - aws_ir.plans.key - INFO - Attempting key disable.
> Traceback (most recent call last):
> File "/home/ec2-user/venv/aws_ir_env/bin/aws_ir", line 10, in <module>
> c.run()
> File "/home/ec2-user/venv/aws_ir_env/lib/python3.7/site-packages/aws_ir/cli.py", line 245, in run
> kc.mitigate()
> File "/home/ec2-user/venv/aws_ir_env/lib/python3.7/site-packages/aws_ir/plans/key.py", line 62, in mitigate
> dry_run=False
> File "/home/ec2-user/venv/aws_ir_env/lib/python3.7/site-packages/aws_ir_plugins/revokests_key.py", line 25, in __init__
> self.setup()
> File "/home/ec2-user/venv/aws_ir_env/lib/python3.7/site-packages/aws_ir_plugins/revokests_key.py", line 33, in setup
> policy_document = self.__generate_inline_policy()
> AttributeError: 'Plugin' object has no attribute '_Plugin__generate_inline_policy'
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Developing QGIS plugin: AttributeError: object has no attribute
Now I am trying to add the existing code for "geocode with web service" and I get some errors like: 'NewMmqgis' object has...
Read more >'module' object has no attribute 'PLUGINS' · Issue #80 ... - GitHub
When attempting to run_will.py, the following error is generated: Traceback (most recent call last): File "./run_will.py", line 5, in
Read more >AttributeError: 'module' object has no attribute - Stack Overflow
E.g. I had a module called commands which is also a Python library module. This proved to be difficult to track down as...
Read more >'My_Plugin_Class' object has no attribute 'topology_builder ...
Solved: Hi, im trying to build my first activegate extension, the aim is to use the plugin to take information from some files...
Read more >Hi, I'm getting this error at the time of classification: | Facebook
dataProvider(), cLB, lS) AttributeError: 'str' object has no attribute 'dataProvider' ... group: Semi-Automatic Classification Plugin for QGIS.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey guys I cloned https://github.com/ThreatResponse/aws_ir_plugins to ~/aws_ir/aws_ir_plugins/ then copied revokests_key.py to ~/aws_ir/venv/lib/python3.5/site-packages/aws_ir_plugins/revokests_key.py. Looks like the key disable worked when I check the key in the IAM console, but I’d like to test again.
I replicated this issue by doing a fresh install. It was due to an old version of aws_ir_plugins on pypi. I published a new version of the plugins and started with a fresh docker container. I was able to run revokests_key without issue.