question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'Plugin' object has no attribute '_Plugin__generate_inline_policy'

See original GitHub issue

Receiving 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:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jul 6, 2018

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.

0reactions
jparrcommented, Jul 7, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found